Browse Source

Initialize randomness in benchmarks

Call RandomInit() in bench_bitcoin to initialize the RNG so that it
does not cause an assertion error.
0.15
Andrew Chow 8 years ago
parent
commit
5155d1101e
  1. 2
      src/bench/bench_bitcoin.cpp

2
src/bench/bench_bitcoin.cpp

@ -7,10 +7,12 @@ @@ -7,10 +7,12 @@
#include "key.h"
#include "validation.h"
#include "util.h"
#include "random.h"
int
main(int argc, char** argv)
{
RandomInit();
ECC_Start();
SetupEnvironment();
fPrintToDebugLog = false; // don't want to write to debug.log file

Loading…
Cancel
Save