MCPcopy Create free account
hub / github.com/apple/foundationdb / nondeterministicRandom

Function nondeterministicRandom

flow/flow.cpp:118–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118Reference<IRandom> nondeterministicRandom() {
119 static thread_local Reference<IRandom> random;
120 if (!random) {
121 random = Reference<IRandom>(new DeterministicRandom(platform::getRandomSeed()));
122 }
123 return random;
124}
125
126std::string UID::toString() const {
127 return format("%016llx%016llx", part[0], part[1]);

Callers 15

Trace.cppFile · 0.85
BlobCipherKeyMethod · 0.85
createMethod · 0.85
getMagazineMethod · 0.85
ConnectionMethod · 0.85
UDPSocketMethod · 0.85
SSLConnectionMethod · 0.85
runMethod · 0.85
checkForSlowTaskMethod · 0.85
Net2.actor.cppFile · 0.85
profileMethod · 0.85
rollMethod · 0.85

Calls 1

getRandomSeedFunction · 0.85

Tested by 2

getMethod · 0.68
randomRemoteMethod · 0.68