Lower initial drop value to 50, it is enough to hide linearity
This commit is contained in:
parent
40220dde01
commit
696fe9ddcd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118732
@ -38,9 +38,9 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/libkern.h>
|
||||
|
||||
#define NSHUFF 100 /* to drop part of seed -> 1st value correlation */
|
||||
#define NSHUFF 50 /* to drop some "seed -> 1st value" linearity */
|
||||
|
||||
static u_long randseed = 892053144; /* after srandom(1), NSHUFF counted */
|
||||
static u_long randseed = 937186357; /* after srandom(1), NSHUFF counted */
|
||||
|
||||
void
|
||||
srandom(seed)
|
||||
|
Loading…
Reference in New Issue
Block a user