X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/63ba498484d4fcfc706be1e514d7fedbc6c9f4be..4184211ef3d1957a395a461e4ca480a7928e83a8:/src/mc/mc_base.c 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); }