Move static global randomizer seeds into CConnman

This commit is contained in:
Pieter Wuille
2016-09-09 12:48:10 +02:00
parent 254ea97e94
commit d9ff591d42
7 changed files with 34 additions and 24 deletions

View File

@@ -1116,7 +1116,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
// ********************************************************* Step 6: network initialization
assert(!g_connman);
g_connman = std::unique_ptr<CConnman>(new CConnman());
g_connman = std::unique_ptr<CConnman>(new CConnman(GetRand(std::numeric_limits<uint64_t>::max()), GetRand(std::numeric_limits<uint64_t>::max())));
CConnman& connman = *g_connman;
RegisterNodeSignals(GetNodeSignals());