Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ RNGxorshf
Method
RNGxorshf
test/src/helper.cpp:54–58 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
52
}
53
54
RNGxorshf::RNGxorshf(uint64_t seed) {
55
std::mt19937_64 gen(seed);
56
s[0] = gen();
57
s[1] = gen();
58
}
59
60
/* ========================== HostTensorGenerator ========================== */
61
template <typename dtype>
Callers
nothing calls this directly
Calls
1
gen
Function · 0.50
Tested by
no test coverage detected