MCPcopy Create free account
hub / github.com/aria2/aria2 / getRandomNumber

Method getRandomNumber

src/SimpleRandomizer.cc:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95long int SimpleRandomizer::getRandomNumber(long int to)
96{
97 assert(to > 0);
98 return std::uniform_int_distribution<long int>(0, to - 1)(*this);
99}
100
101void SimpleRandomizer::getRandomBytes(unsigned char* buf, size_t len)
102{

Callers 9

addBadPeerMethod · 0.45
tryCloseFileMethod · 0.45
sendPublicKeyMethod · 0.45
sendInitiatorStep2Method · 0.45
sendReceiverStep2Method · 0.45
selectMethod · 0.45
selectRandomUriMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected