mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
microsoft compiler support
This commit is contained in:
1 parent
9411fe4e51
commit
9e461e0960
21 files changed
+1174
-34
No files matched your search
@@ -5,8 +5,12 @@
|
||||
|
||||
namespace dht {
|
||||
|
||||
static std::mt19937 rd {dht::crypto::random_device{}()};
|
||||
static std::mt19937 rd{ dht::crypto::random_device{}() };
|
||||
#ifdef _WIN32
|
||||
static std::uniform_int_distribution<int> rand_byte{ 0, std::numeric_limits<uint8_t>::max() };
|
||||
#else
|
||||
static std::uniform_int_distribution<uint8_t> rand_byte;
|
||||
#endif
|
||||
|
||||
std::shared_ptr<Node>
|
||||
Bucket::randomNode()
|
||||
|
||||
Reference in new issue
Block a user