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
[mc] Support for reading heap state from another process
[simgrid.git]
/
src
/
mc
/
mc_base.c
diff --git
a/src/mc/mc_base.c
b/src/mc/mc_base.c
index
bd43d7a
..
34a5bad
100644
(file)
--- a/
src/mc/mc_base.c
+++ b/
src/mc/mc_base.c
@@
-10,6
+10,11
@@
#include "../simix/smx_private.h"
#include "mc_record.h"
#include "../simix/smx_private.h"
#include "mc_record.h"
+#ifdef HAVE_MC
+#include "mc_process.h"
+#include "mc_model_checker.h"
+#endif
+
XBT_LOG_NEW_CATEGORY(mc, "All MC categories");
/**
XBT_LOG_NEW_CATEGORY(mc, "All MC categories");
/**
@@
-101,7
+106,11
@@
static int prng_random(int min, int max)
// Use rejection in order to avoid skew
long x;
do {
// Use rejection in order to avoid skew
long x;
do {
+#ifndef _XBT_WIN32
x = random();
x = random();
+#else
+ x = rand();
+#endif
} while( x >= accept_size );
return min + (x % output_size);
}
} while( x >= accept_size );
return min + (x % output_size);
}