aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2017-06-23 14:18:44 -0700
committerAndrew Chow <achow101-github@achow101.com>2017-06-23 14:21:10 -0700
commit5155d1101eb4fc9d4d797b583bb29f71807bd10b (patch)
tree322409a43d8b3dd3be0033d39aa2cd83d56f984d /src/bench
parente2921405dff1331d0a1ba6a2e97b2cc23992e72a (diff)
Initialize randomness in benchmarks
Call RandomInit() in bench_bitcoin to initialize the RNG so that it does not cause an assertion error.
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/bench_bitcoin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bench/bench_bitcoin.cpp b/src/bench/bench_bitcoin.cpp
index 61a0b31aed..226861aa7f 100644
--- a/src/bench/bench_bitcoin.cpp
+++ b/src/bench/bench_bitcoin.cpp
@@ -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