Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/KeyDB
/ randomHashSlot
Function
randomHashSlot
src/storage/rocksdb.cpp:274–276 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
272
}
273
274
std::string randomHashSlot() {
275
return getPrefix(genrand64_int63() % (1 << 16));
276
}
277
278
std::vector<std::string> RocksDBStorageProvider::getEvictionCandidates(unsigned int count)
279
{
Callers
1
getEvictionCandidates
Method · 0.85
Calls
2
getPrefix
Function · 0.85
genrand64_int63
Function · 0.85
Tested by
no test coverage detected