Index: sys/libkern/random.c =================================================================== --- sys/libkern/random.c +++ sys/libkern/random.c @@ -36,7 +36,7 @@ #define NSHUFF 50 /* to drop some "seed -> 1st value" linearity */ -static u_long randseed = 937186357; /* after srandom(1), NSHUFF counted */ +static u_long randseed; /* 0 means seeded with arc4random */ void srandom(seed) @@ -67,7 +67,7 @@ */ /* Can't be initialized with 0, so use another value. */ if ((x = randseed) == 0) - x = 123459876; + x = arc4random() / 2 + 1; hi = x / 127773; lo = x % 127773; t = 16807 * lo - 2836 * hi;