From c408a68c414742fabbfb0187089d54b5c495c016 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 6 Feb 2020 11:45:36 +0100 Subject: [PATCH] Set seed only after having chosen the implementation. --- src/xbt/random_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xbt/random_test.cpp b/src/xbt/random_test.cpp index f601ea9791..60c52a4531 100644 --- a/src/xbt/random_test.cpp +++ b/src/xbt/random_test.cpp @@ -27,8 +27,8 @@ TEST_CASE("xbt::random: Random Number Generation") std::mt19937 gen; gen.seed(12345); - simgrid::xbt::random::set_mersenne_seed(12345); simgrid::xbt::random::set_implem_std(); + simgrid::xbt::random::set_mersenne_seed(12345); std::exponential_distribution<> distA(25); std::uniform_int_distribution<> distB(1, 6); -- 2.20.1