From e150c434456316ce9f071565052d12c5396a8ab7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 23 Oct 2020 18:17:33 +0200 Subject: [PATCH] testing: fix rnd --- test/lib/random.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2