aboutsummaryrefslogtreecommitdiff
path: root/src/bench/bench_bitcoin.cpp
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2017-06-23 14:18:44 -0700
committerAndrew Chow <[email protected]>2017-06-23 14:21:10 -0700
commit5155d1101eb4fc9d4d797b583bb29f71807bd10b (patch)
tree322409a43d8b3dd3be0033d39aa2cd83d56f984d /src/bench/bench_bitcoin.cpp
parentMerge #10644: Slightly overhaul NSI pixmaps (diff)
downloaddiscoin-5155d1101eb4fc9d4d797b583bb29f71807bd10b.tar.xz
discoin-5155d1101eb4fc9d4d797b583bb29f71807bd10b.zip
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/bench_bitcoin.cpp')
-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 61a0b31ae..226861aa7 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