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

Function deterministicRandom

flow/flow.cpp:111–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111Reference<IRandom> deterministicRandom() {
112 if (!seededRandom) {
113 seededRandom = Reference<IRandom>(new DeterministicRandom(platform::getRandomSeed(), true));
114 }
115 return seededRandom;
116}
117
118Reference<IRandom> nondeterministicRandom() {
119 static thread_local Reference<IRandom> random;

Callers 15

init_buffersFunction · 0.85
get_rand_offsetFunction · 0.85
allocGlobalCipherKeyMethod · 0.85
StreamCipherKeyMethod · 0.85
StreamCipherMethod · 0.85
StreamCipher.cppFile · 0.85
openMethod · 0.85
Trace.cppFile · 0.85
getTraceThreadIdFunction · 0.85

Calls 1

getRandomSeedFunction · 0.85

Tested by 15

init_buffersFunction · 0.68
get_rand_offsetFunction · 0.68
test_single_memcpyFunction · 0.68
Future<Void> testClientFunction · 0.68
getRandomKeyMethod · 0.68
keyForIndexMethod · 0.68
Future<Void> poissonFunction · 0.68
Future<Void> runTestsFunction · 0.68
test_implMethod · 0.68