use std::mt19937 for random numbers in netdb

This commit is contained in:
orignal
2025-01-20 13:27:40 -05:00
parent 39e07ac265
commit 29a5effabb
2 changed files with 8 additions and 7 deletions

View File

@@ -16,6 +16,7 @@
#include <thread>
#include <mutex>
#include <future>
#include <random>
#include "Base.h"
#include "Gzip.h"
@@ -189,6 +190,7 @@ namespace data
std::vector<std::shared_ptr<const RouterInfo> > m_ExploratorySelection;
uint64_t m_LastExploratorySelectionUpdateTime; // in monotonic seconds
std::mt19937 m_Rng;
i2p::util::MemoryPoolMt<RouterInfo::Buffer> m_RouterInfoBuffersPool;
i2p::util::MemoryPoolMt<RouterInfo::Address> m_RouterInfoAddressesPool;