mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-10 07:08:07 +00:00
5155d1101e
Call RandomInit() in bench_bitcoin to initialize the RNG so that it does not cause an assertion error.
24 lines
517 B
C++
24 lines
517 B
C++
// Copyright (c) 2015-2016 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include "bench.h"
|
|
|
|
#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
|
|
|
|
benchmark::BenchRunner::RunAll();
|
|
|
|
ECC_Stop();
|
|
}
|