Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
getRandomKeySelector
Function · 0.70
Calls
3
getKeyForIndex
Function · 0.85
deterministicRandom
Function · 0.85
randomInt
Method · 0.45
Tested by
no test coverage detected