MCPcopy Create free account
hub / github.com/catboost/catboost / Next

Method Next

util/datetime/benchmark/gmtime_r/main.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 time_t Next(TRandomEngine& gen) const {
25 if (Spread_ <= 1) {
26 return Base_;
27 }
28 time_t offset = gen.GenRand() % Spread_;
29 return Base_ + offset;
30 }
31
32 private:
33 time_t Base_;

Callers 4

MurmurHash32Function · 0.45
MurmurHash64Function · 0.45
BM_GmTimeRFunction · 0.45
BM_gmtime_rFunction · 0.45

Calls 1

GenRandMethod · 0.45

Tested by

no test coverage detected