summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0efb857)
Exclude 1.0 from the possible results, add parentheses around whole
expression, and remove spurious semicolon.
/* Need to define function drand48 for Windows */
#ifdef _WIN32
/* 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
#endif
#define INSTR_DEFAULT_STR_SIZE 500