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
Fix drand48() macro.
[simgrid.git]
/
src
/
instr
/
instr_private.h
diff --git
a/src/instr/instr_private.h
b/src/instr/instr_private.h
index 4f57282d5b4ef08b8fbdb6ff4148d5be67f32051..842dc7fd2ab65e85c9b7f72123b5fb3b5306bae6 100644
(file)
--- a/
src/instr/instr_private.h
+++ b/
src/instr/instr_private.h
@@
-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