MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / ready

Function ready

common/test/perf_objcache.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17std::array<uint64_t, count> keys;
18
19void ready() {
20 LOG_INFO("Get ready");
21
22 std::mt19937 rng(std::random_device{}());
23 std::uniform_int_distribution<uint64_t> nd;
24
25 for (auto &x : keys) {
26 x = nd(rng);
27 }
28 LOG_INFO("Random key generated");
29}
30
31template <template <class, class> class OC>
32void *task(void *arg) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected