MCPcopy Create free account
hub / github.com/ElementsProject/elements / Rng

Method Rng

src/bench/nanobench.h:3233–3242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3231}
3232
3233Rng::Rng()
3234 : mX(0)
3235 , mY(0) {
3236 std::random_device rd;
3237 std::uniform_int_distribution<uint64_t> dist;
3238 do {
3239 mX = dist(rd);
3240 mY = dist(rd);
3241 } while (mX == 0 && mY == 0);
3242}
3243
3244ANKERL_NANOBENCH_NO_SANITIZE("integer", "undefined")
3245uint64_t splitMix64(uint64_t& state) noexcept {

Callers

nothing calls this directly

Calls 3

splitMix64Function · 0.85
to_sFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected