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

Method randomKey

fdbserver/workloads/KVStoreTest.actor.cpp:146–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145
146 Key randomKey() { return makeKey(deterministicRandom()->randomInt(0, nodeCount)); }
147 Key makeKey(Version value) {
148 Key k;
149 ((KeyRef&)k) = KeyRef(new (k.arena()) uint8_t[keyBytes], keyBytes);

Callers 2

Calls 2

deterministicRandomFunction · 0.85
randomIntMethod · 0.45

Tested by

no test coverage detected