MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / FastRandom_32bit

Function FastRandom_32bit

src/bench/crypto_hash.cpp:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static void FastRandom_32bit(benchmark::State& state)
81{
82 FastRandomContext rng(true);
83 uint32_t x = 0;
84 while (state.KeepRunning()) {
85 x += rng.rand32();
86 }
87}
88
89static void FastRandom_1bit(benchmark::State& state)
90{

Callers

nothing calls this directly

Calls 2

KeepRunningMethod · 0.80
rand32Method · 0.80

Tested by

no test coverage detected