Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Set seed only after having chosen the implementation.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 6 Feb 2020 10:45:36 +0000 (11:45 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 6 Feb 2020 10:45:36 +0000 (11:45 +0100)
src/xbt/random_test.cpp

index f601ea9..60c52a4 100644 (file)
@@ -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);