Home
last modified time | relevance | path

Searched refs:Random (Results 1 – 15 of 15) sorted by relevance

/leveldb-1.20/util/
H A Dtestutil.cc12 Slice RandomString(Random* rnd, int len, std::string* dst) { in RandomString()
20 std::string RandomKey(Random* rnd, int len) { in RandomKey()
34 extern Slice CompressibleString(Random* rnd, double compressed_fraction, in CompressibleString()
H A Dtestutil.h17 extern Slice RandomString(Random* rnd, int len, std::string* dst);
21 extern std::string RandomKey(Random* rnd, int len);
26 extern Slice CompressibleString(Random* rnd, double compressed_fraction,
H A Drandom.h15 class Random {
19 explicit Random(uint32_t s) : seed_(s & 0x7fffffffu) { in Random() function
H A Darena_test.cc23 Random rnd(301); in TEST()
/leveldb-1.20/db/
H A Dskiplist_test.cc50 Random rnd(1000); in TEST()
173 static Key RandomTarget(Random* rnd) { in RandomTarget()
217 void WriteStep(Random* rnd) { in WriteStep()
225 void ReadStep(Random* rnd) { in ReadStep()
290 Random rnd(test::RandomSeed()); in TEST()
338 Random rnd(state->seed_); in ConcurrentReader()
350 Random rnd(seed); in RunConcurrent()
H A Dlog_test.cc35 static std::string RandomSkewedString(int i, Random* rnd) { in RandomSkewedString()
364 Random write_rnd(301); in TEST()
368 Random read_rnd(301); in TEST()
H A Ddb_test.cc22 static std::string RandomString(Random* rnd, int len) { in RandomString()
984 Random rnd(301); in TEST()
1015 Random rnd(301); in TEST()
1091 Random rnd(301); in TEST()
1139 Random rnd(301); in TEST()
1229 Random rnd(301); in TEST()
1783 Random rnd(1000 + id); in MTThreadBody()
1962 static std::string RandomKey(Random* rnd) { in RandomKey()
2018 Random rnd(test::RandomSeed()); in TEST()
H A Dfault_injection_test.cc446 Random r(k); in Value()
513 Random rnd(0); in DoTest()
H A Ddb_iter.cc122 Random rnd_;
H A Dskiplist.h116 Random rnd_;
H A Dcorruption_test.cc197 Random r(k); in Value()
H A Ddb_bench.cc133 Random rnd(301); in RandomGenerator()
305 Random rand; // Has different seeds for different threads
/leveldb-1.20/table/
H A Dtable_test.cc477 void Test(Random* rnd) { in Test()
517 void TestRandomAccess(Random* rnd, in TestRandomAccess()
612 std::string PickRandomKey(Random* rnd, const std::vector<std::string>& keys) { in PickRandomKey()
651 Random rnd(test::RandomSeed() + 1); in TEST()
681 Random rnd(test::RandomSeed() + 1); in TEST()
690 Random rnd(test::RandomSeed() + 2); in TEST()
699 Random rnd(test::RandomSeed() + 3); in TEST()
710 Random rnd(test::RandomSeed() + 4); in TEST()
719 Random rnd(test::RandomSeed() + 5); in TEST()
737 Random rnd(test::RandomSeed()); in TEST()
[all …]
/leveldb-1.20/doc/bench/
H A Ddb_bench_tree_db.cc97 Random rnd(301); in RandomGenerator()
144 Random rand_;
H A Ddb_bench_sqlite3.cc128 Random rnd(301); in RandomGenerator()
175 Random rand_;