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

Method randomUniqueID

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

Source from the content-addressed store, hash-verified

102}
103
104UID DeterministicRandom::randomUniqueID() {
105 uint64_t x, y;
106 x = gen64();
107 y = gen64();
108 if (randLog && useRandLog)
109 fmt::print(randLog, "Ruid {0} {1}\n", x, y);
110 return UID(x, y);
111}
112
113char DeterministicRandom::randomAlphaNumeric() {
114 static const char alphanum[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";

Callers 15

allocGlobalCipherKeyMethod · 0.80
StreamCipherKeyMethod · 0.80
StreamCipherMethod · 0.80
Trace.cppFile · 0.80
atomicReplaceFunction · 0.80
ConnectionMethod · 0.80
UDPSocketMethod · 0.80
SSLConnectionMethod · 0.80

Calls 2

UIDClass · 0.85
printFunction · 0.50

Tested by 12

Future<Void> clearDataFunction · 0.64
Future<Void> testKVStoreFunction · 0.64
simEmptyDomainIdCacheMethod · 0.64
simPartialDomainIdCacheFunction · 0.64
Future<Void> _startFunction · 0.64
includeServersFunction · 0.64
commitMethod · 0.64
includeLocalitiesFunction · 0.64