Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
MurmurHash32
Function · 0.45
MurmurHash64
Function · 0.45
BM_GmTimeR
Function · 0.45
BM_gmtime_r
Function · 0.45
Calls
1
GenRand
Method · 0.45
Tested by
no test coverage detected