Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ ToRand64
Function
ToRand64
util/random/common_ops.h:36–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
35
template <class T>
36
static inline ui64 ToRand64(T&& rng, ui32 x) noexcept {
37
return ((ui64)x) | (((ui64)rng.GenRand()) << 32);
38
}
39
40
template <class T>
41
static constexpr ui64 ToRand64(T&&, ui64 x) noexcept {
Callers
1
GenRand64
Method · 0.85
Calls
1
GenRand
Method · 0.45
Tested by
no test coverage detected