microsoft compiler support

This commit is contained in:
Andreas Traczyk authored and Adrien Béraud committed 2016-06-02 12:17:09 -04:00
1 parent 9411fe4e51
commit 9e461e0960
21 files changed
+1174 -34

No files matched your search

+5 -1
View File
@@ -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()