Profile tests run through "./unit-tests --order rand" were sometimes failing.
SECTION("Two stochastic events (drawing each distribution)")
{
+ simgrid::xbt::random::set_implem_xbt();
simgrid::xbt::random::set_mersenne_seed(12345);
std::vector<simgrid::kernel::profile::DatedValue> got = trace2vector("STOCHASTIC\n"
"DET 0 UNIF 10 20\n"
SECTION("Two stochastic events, with a loop")
{
+ simgrid::xbt::random::set_implem_xbt();
simgrid::xbt::random::set_mersenne_seed(12345);
std::vector<simgrid::kernel::profile::DatedValue> got = trace2vector("STOCHASTIC LOOP\n"
"DET 0 UNIF 10 20\n"
{
SECTION("Using XBT_RNG_xbt")
{
+ simgrid::xbt::random::set_implem_xbt();
simgrid::xbt::random::set_mersenne_seed(12345);
REQUIRE_THAT(simgrid::xbt::random::exponential(25), EpsilonApprox(0.00291934351538427348));
REQUIRE(simgrid::xbt::random::uniform_int(1, 6) == 4);