MCPcopy Create free account
hub / github.com/baidu/tera / SetRandomConstant

Method SetRandomConstant

src/benchmark/tpcc/random_generator.cc:25–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23NURandConstant RandomGenerator::GetRandomConstant() const { return c_; }
24
25void RandomGenerator::SetRandomConstant() {
26 c_.c_last = GetRandom(0, 255);
27 c_.c_id = GetRandom(0, 1023);
28 c_.ol_i_id = GetRandom(0, 8191);
29}
30
31inline bool VarfiyConstantAvailableForRun(int run_last, int load_last) {
32 int delta = run_last - load_last;

Callers 2

mainFunction · 0.80
DataGeneratorTestMethod · 0.80

Calls 1

Tested by 1

DataGeneratorTestMethod · 0.64