A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure that the expected RNG (xbt) is used for unit-tests.
[simgrid.git]
/
src
/
xbt
/
random_test.cpp
diff --git
a/src/xbt/random_test.cpp
b/src/xbt/random_test.cpp
index
9b66134
..
e6179be
100644
(file)
--- a/
src/xbt/random_test.cpp
+++ b/
src/xbt/random_test.cpp
@@
-15,6
+15,7
@@
TEST_CASE("xbt::random: Random Number Generation")
{
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);