mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 10:42:23 +02:00
Initialize randomness in benchmarks
Call RandomInit() in bench_bitcoin to initialize the RNG so that it does not cause an assertion error.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user