Automatically initialize RNG on first use.

This commit is contained in:
Pieter Wuille
2018-12-17 16:48:21 -08:00
parent 2d1cc50939
commit 05fde14e3a
4 changed files with 56 additions and 22 deletions

View File

@@ -49,7 +49,6 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName)
: m_path_root(fs::temp_directory_path() / "test_bitcoin" / strprintf("%lu_%i", (unsigned long)GetTime(), (int)(InsecureRandRange(1 << 30))))
{
SHA256AutoDetect();
RandomInit();
ECC_Start();
SetupEnvironment();
SetupNetworking();