... | ... |
@@ -749,7 +749,7 @@ unsigned int cli_rndnum(unsigned int max) |
749 | 749 |
if(name_salt[0] == 16) { /* minimizes re-seeding after the first call to cli_gentemp() */ |
750 | 750 |
struct timeval tv; |
751 | 751 |
gettimeofday(&tv, (struct timezone *) 0); |
752 |
- srand(tv.tv_usec+clock()+random()); |
|
752 |
+ srand(tv.tv_usec+clock()+rand()); |
|
753 | 753 |
} |
754 | 754 |
|
755 | 755 |
return 1 + (unsigned int) (max * (rand() / (1.0 + RAND_MAX))); |