From 5155d1101eb4fc9d4d797b583bb29f71807bd10b Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 23 Jun 2017 14:18:44 -0700 Subject: [PATCH] Initialize randomness in benchmarks Call RandomInit() in bench_bitcoin to initialize the RNG so that it does not cause an assertion error. --- src/bench/bench_bitcoin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bench/bench_bitcoin.cpp b/src/bench/bench_bitcoin.cpp index 61a0b31aedd..226861aa7f7 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