mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Prevent warning: variable 'x' is uninitialized
This commit is contained in:
parent
c73af5416b
commit
5ec883667f
@ -73,7 +73,7 @@ static void SipHash_32b(benchmark::State& state)
|
||||
static void FastRandom_32bit(benchmark::State& state)
|
||||
{
|
||||
FastRandomContext rng(true);
|
||||
uint32_t x;
|
||||
uint32_t x = 0;
|
||||
while (state.KeepRunning()) {
|
||||
for (int i = 0; i < 1000000; i++) {
|
||||
x += rng.rand32();
|
||||
@ -84,7 +84,7 @@ static void FastRandom_32bit(benchmark::State& state)
|
||||
static void FastRandom_1bit(benchmark::State& state)
|
||||
{
|
||||
FastRandomContext rng(true);
|
||||
uint32_t x;
|
||||
uint32_t x = 0;
|
||||
while (state.KeepRunning()) {
|
||||
for (int i = 0; i < 1000000; i++) {
|
||||
x += rng.randbool();
|
||||
|
Loading…
Reference in New Issue
Block a user