Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an option to alter the default hidden and poorly performing loopback link in...
[simgrid.git] / src / xbt / random_test.cpp
index 83ee865..a35d580 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2019. The SimGrid Team. All rights reserved.               */
+/* Copyright (c) 2019-2020. The SimGrid Team. All rights reserved.               */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -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);