MCPcopy Create free account
hub / github.com/ElementsProject/elements / ReadRandom

Method ReadRandom

src/leveldb/benchmarks/db_bench_tree_db.cc:464–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462 }
463
464 void ReadRandom() {
465 std::string value;
466 for (int i = 0; i < reads_; i++) {
467 char key[100];
468 const int k = rand_.Next() % reads_;
469 snprintf(key, sizeof(key), "%016d", k);
470 db_->get(key, &value);
471 FinishedSingleOp();
472 }
473 }
474};
475
476} // namespace leveldb

Callers

nothing calls this directly

Calls 2

NextMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected