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
Have smpirun, smpicc and friends display the simgrid git hash version on --git-version
[simgrid.git]
/
src
/
mc
/
mc_base.c
diff --git
a/src/mc/mc_base.c
b/src/mc/mc_base.c
index
bd43d7a
..
82ca8c6
100644
(file)
--- a/
src/mc/mc_base.c
+++ b/
src/mc/mc_base.c
@@
-101,7
+101,11
@@
static int prng_random(int min, int max)
// Use rejection in order to avoid skew
long x;
do {
+#ifndef _XBT_WIN32
x = random();
+#else
+ x = rand();
+#endif
} while( x >= accept_size );
return min + (x % output_size);
}