mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Since we drop NSHUFF values now, set default seed to what it becomes
after srand(1)
This commit is contained in:
parent
028a849180
commit
f3047249d4
1 changed files with 3 additions and 3 deletions
|
|
@ -98,12 +98,12 @@ rand_r(unsigned int *ctx)
|
|||
}
|
||||
|
||||
|
||||
static u_long next = 1;
|
||||
static u_long next = 892053144; /* after srand(1), NSHUFF counted */
|
||||
|
||||
int
|
||||
rand()
|
||||
{
|
||||
return do_rand(&next);
|
||||
return (do_rand(&next));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -114,7 +114,7 @@ u_int seed;
|
|||
|
||||
next = seed;
|
||||
for (i = 0; i < NSHUFF; i++)
|
||||
(void)do_rand(&next);
|
||||
(void)rand();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue