diff options
| author | Andrew Chow <[email protected]> | 2017-06-23 14:18:44 -0700 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2017-06-23 14:21:10 -0700 |
| commit | 5155d1101eb4fc9d4d797b583bb29f71807bd10b (patch) | |
| tree | 322409a43d8b3dd3be0033d39aa2cd83d56f984d /src/bench/bench_bitcoin.cpp | |
| parent | Merge #10644: Slightly overhaul NSI pixmaps (diff) | |
| download | discoin-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.cpp | 2 |
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 |