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

Method getRandomKey

fdbserver/tester.actor.cpp:79–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79Key KVWorkload::getRandomKey() const {
80 return getRandomKey(absentFrac);
81}
82
83Key KVWorkload::getRandomKey(double absentFrac) const {
84 if (absentFrac > 0.0000001) {

Callers

nothing calls this directly

Calls 5

deterministicRandomFunction · 0.85
random01Method · 0.80
getRandomKeyFunction · 0.50
keyForIndexFunction · 0.50
randomIntMethod · 0.45

Tested by

no test coverage detected