We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c73af54 + 5ec8836 commit 54e2d87Copy full SHA for 54e2d87
src/bench/crypto_hash.cpp
@@ -73,7 +73,7 @@ static void SipHash_32b(benchmark::State& state)
73
static void FastRandom_32bit(benchmark::State& state)
74
{
75
FastRandomContext rng(true);
76
- uint32_t x;
+ uint32_t x = 0;
77
while (state.KeepRunning()) {
78
for (int i = 0; i < 1000000; i++) {
79
x += rng.rand32();
@@ -84,7 +84,7 @@ static void FastRandom_32bit(benchmark::State& state)
84
static void FastRandom_1bit(benchmark::State& state)
85
86
87
88
89
90
x += rng.randbool();
0 commit comments