MCPcopy 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
54RNGxorshf::RNGxorshf(uint64_t seed) {
55 std::mt19937_64 gen(seed);
56 s[0] = gen();
57 s[1] = gen();
58}
59
60/* ========================== HostTensorGenerator ========================== */
61template <typename dtype>

Callers

nothing calls this directly

Calls 1

genFunction · 0.50

Tested by

no test coverage detected