diff --git a/libbitdht/src/util/bdrandom.cc b/libbitdht/src/util/bdrandom.cc index 456351aa0..b2d7ee2b8 100644 --- a/libbitdht/src/util/bdrandom.cc +++ b/libbitdht/src/util/bdrandom.cc @@ -7,7 +7,7 @@ uint32_t bdRandom::index = 0 ; std::vector bdRandom::MT(bdRandom::N,0u) ; bdMutex bdRandom::rndMtx ; -#ifdef WINDOWS_SYS +#if defined(_WIN32) || defined(__MINGW32__) static bool auto_seed = bdRandom::seed( (time(NULL) + ((uint32_t) pthread_self().p)*0x1293fe)^0x18e34a12 ) ; #else #ifdef __APPLE__