Substantially improve random number generation by using the largest prime
authortholo <tholo@openbsd.org>
Sat, 30 Mar 1996 10:01:47 +0000 (10:01 +0000)
committertholo <tholo@openbsd.org>
Sat, 30 Mar 1996 10:01:47 +0000 (10:01 +0000)
commit31de761c6bdce0878debe7c8d5240f6a7a4315df
tree80dde55774aa0cfa917a09b61858eff837029253
parent39e76c39e08b34a58800cf3d521786868310bf72
Substantially improve random number generation by using the largest prime
that fits inside 32 bits as the denominator; take care not to overflow.
Regenerate initial seed after replacing the generator
lib/libc/stdlib/random.c