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
Fix few typos and add random seed intializer
[simgrid.git]
/
src
/
mc
/
mc_config.cpp
diff --git
a/src/mc/mc_config.cpp
b/src/mc/mc_config.cpp
index
64a0e29
..
6ad0c6c
100644
(file)
--- a/
src/mc/mc_config.cpp
+++ b/
src/mc/mc_config.cpp
@@
-75,6
+75,10
@@
simgrid::config::Flag<std::string> _sg_mc_strategy{
{"uniform", "No specific strategy: choices are made randomly based on a uniform sampling."}
}};
+simgrid::config::Flag<int> _sg_mc_random_seed{"model-check/rand-seed",
+ "give a specific random seed to initialize the uniform distribution", 0,
+ [](int) { _mc_cfg_cb_check("Random seed"); }};
+
#if SIMGRID_HAVE_STATEFUL_MC
simgrid::config::Flag<int> _sg_mc_checkpoint{
"model-check/checkpoint", "Specify the amount of steps between checkpoints during stateful model-checking "