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

Function getRandomKey

fdbserver/workloads/WriteDuringRead.actor.cpp:705–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703 }
704
705 Key getRandomKey() { return getKeyForIndex(deterministicRandom()->randomInt(0, nodes)); }
706
707 Key getKeyForIndex(int idx) {
708 idx += minNode;

Callers 1

getRandomKeySelectorFunction · 0.70

Calls 3

getKeyForIndexFunction · 0.85
deterministicRandomFunction · 0.85
randomIntMethod · 0.45

Tested by

no test coverage detected