MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / PoissonNextSend

Function PoissonNextSend

src/net.cpp:2262–2264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2260}
2261
2262int64_t PoissonNextSend(int64_t nNow, int average_interval_seconds) {
2263 return nNow + (int64_t)(log1p(GetRand(1ULL << 48) * -0.0000000000000035527136788 /* -1/2^48 */) * average_interval_seconds * -1000000.0 + 0.5);
2264}

Callers 2

SendMessagesFunction · 0.85
ThreadOpenConnectionsFunction · 0.85

Calls 1

GetRandFunction · 0.85

Tested by

no test coverage detected