From a73a6a48383b9dd8019295693bb12b385988aa43 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. Cherry-picked from: 5155d1101eb4fc9d4d797b583bb29f71807bd10b --- src/bench/bench_bitcoin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bench/bench_bitcoin.cpp b/src/bench/bench_bitcoin.cpp index c4e3fd5d034..af00bd4a003 100644 --- a/src/bench/bench_bitcoin.cpp +++ b/src/bench/bench_bitcoin.cpp @@ -5,10 +5,13 @@ #include "bench.h" // for BenchRunner #include "key.h" // for ECC_Start, ECC_Stop #include "util.h" // for SetupEnvironment, fPrintToDebugLog +#include "validation.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