Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
comment some dead code marked 'that doesn't work' which raised a unused-but-set-varia...
[simgrid.git] / src / instr / instr_private.h
index 4f57282..842dc7f 100644 (file)
@@ -13,7 +13,7 @@
 
 /* Need to define function drand48 for Windows */
 #ifdef _WIN32
-       #define drand48() rand()/(float)(RAND_MAX);
+#  define drand48() (rand()/(RAND_MAX + 1.0))
 #endif
 
 #define INSTR_DEFAULT_STR_SIZE 500