Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/facebook/CacheLib
/ makeKey
Function
makeKey
cachelib/benchmarks/HashMapBenchmark.cpp:59–61 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
57
58
template <class K>
59
K makeKey() {
60
return folly::to<K>(folly::Random::rand32(kKeySpace));
61
}
62
63
template <class K>
64
const std::vector<K>& makeKeys() {
Callers
1
TEST_F
Function · 0.85
Calls
no outgoing calls
Tested by
1
TEST_F
Function · 0.68