Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
79
Key KVWorkload::getRandomKey() const {
80
return getRandomKey(absentFrac);
81
}
82
83
Key KVWorkload::getRandomKey(double absentFrac) const {
84
if (absentFrac > 0.0000001) {
Callers
nothing calls this directly
Calls
5
deterministicRandom
Function · 0.85
random01
Method · 0.80
getRandomKey
Function · 0.50
keyForIndex
Function · 0.50
randomInt
Method · 0.45
Tested by
no test coverage detected