After fixing ranges restore POSIX requirement: rand() call without
srand() must be the same as srand(1); rand(); (yet one increment)
This commit is contained in:
parent
f72b68a1bf
commit
7d815fd551
@ -99,7 +99,12 @@ rand_r(unsigned int *ctx)
|
||||
}
|
||||
|
||||
|
||||
static u_long next = 1;
|
||||
static u_long next =
|
||||
#ifdef USE_WEAK_SEEDING
|
||||
1;
|
||||
#else
|
||||
2;
|
||||
#endif
|
||||
|
||||
int
|
||||
rand()
|
||||
|
Loading…
Reference in New Issue
Block a user