mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01: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:
parent
e2921405df
commit
5155d1101e
@ -7,10 +7,12 @@
|
|||||||
#include "key.h"
|
#include "key.h"
|
||||||
#include "validation.h"
|
#include "validation.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
#include "random.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char** argv)
|
main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
RandomInit();
|
||||||
ECC_Start();
|
ECC_Start();
|
||||||
SetupEnvironment();
|
SetupEnvironment();
|
||||||
fPrintToDebugLog = false; // don't want to write to debug.log file
|
fPrintToDebugLog = false; // don't want to write to debug.log file
|
||||||
|
Loading…
Reference in New Issue
Block a user