From: Michael Wallner Date: Fri, 23 Oct 2020 16:17:33 +0000 (+0200) Subject: testing: fix rnd X-Git-Tag: 1.1.0-beta1~168 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e150c434456316ce9f071565052d12c5396a8ab7;p=m6w6%2Flibmemcached testing: fix rnd --- diff --git a/test/lib/random.hpp b/test/lib/random.hpp index 1d7f7a6f..723146a9 100644 --- a/test/lib/random.hpp +++ b/test/lib/random.hpp @@ -30,11 +30,11 @@ using kv_pair = pair; template enable_if_t, T> random_num(T min, T max) { using namespace chrono; - using rnd = mt19937; - using dst = uniform_int_distribution; + using rnd = mt19937_64; + using dst = uniform_int_distribution; static auto time = duration_cast(system_clock::now().time_since_epoch()); - static auto seed = static_cast(time.count() % numeric_limits::max()); + static auto seed = static_cast(time.count()); static auto rgen = rnd{seed}; return dst(min, max)(rgen);