Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Set seed only after having chosen the implementation.
[simgrid.git] / 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);