mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 19:41:41 +00:00
common GetRngSeed to initialize std::mt19937
This commit is contained in:
1 parent
264a9af7a3
commit
cac6c53ccb
13 files changed
+121
-112
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ namespace data
|
||||
NetDb::NetDb (): m_IsRunning (false), m_Thread (nullptr), m_Reseeder (nullptr),
|
||||
m_Storage("netDb", "r", "routerInfo-", "dat"), m_PersistProfiles (true),
|
||||
m_NetDbPersistInterval (NETDB_MIN_PERSIST_INTERVAL*1000LL),
|
||||
m_LastExploratorySelectionUpdateTime (0), m_Rng(i2p::util::GetMonotonicMicroseconds () % 1000000LL)
|
||||
m_LastExploratorySelectionUpdateTime (0), m_Rng(i2p::util::GetRngSeed ())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user