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

Function PoissonNextSend

src/net.cpp:2880–2883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2878}
2879
2880int64_t PoissonNextSend(int64_t now, int average_interval_seconds)
2881{
2882 return now + (int64_t)(log1p(GetRand(1ULL << 48) * -0.0000000000000035527136788 /* -1/2^48 */) * average_interval_seconds * -1000000.0 + 0.5);
2883}
2884
2885CSipHasher CConnman::GetDeterministicRandomizer(uint64_t id) const
2886{

Callers 3

SendMessagesMethod · 0.85
ThreadOpenConnectionsMethod · 0.85

Calls 1

GetRandFunction · 0.85

Tested by

no test coverage detected