X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/03d36345c4247a907709b86c189a53f5f85bea88..5a99bd94a2cedf8b455e78de53b19bebab8c034e:/src/mc/mc_base.c?ds=sidebyside diff --git a/src/mc/mc_base.c b/src/mc/mc_base.c index bd43d7a1ae..82ca8c6a4f 100644 --- 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); }