Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
Future<Void> testKVReadSaturation
Function · 0.45
Future<Void> testKVStoreMain
Function · 0.45
Calls
2
deterministicRandom
Function · 0.85
randomInt
Method · 0.45
Tested by
no test coverage detected