markm
6187976edf
Add a long-overdue nail to the deprecated /dev/urandom interface
...
by asking some things that need unpredictable numbers to read
/dev/random instead.
2001-10-30 21:26:50 +00:00
dd
7e284cc83d
urandom(4) -> random(4) in comments.
...
PR: 27858
Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp>
Reviewed by: md5(1)
Approved by: markm
2001-06-07 02:32:18 +00:00
ache
873e76a169
Add #include "un-namespace.h"
2001-04-23 10:38:26 +00:00
ache
18527260ea
srand*dev() fallback code: change ^getpid() to ^(getpid() << 16) to allow
...
change of high word part too to produce more interesting seed distribution.
2001-04-23 10:14:28 +00:00
ache
fb76083ae2
Add sranddev() since srand() is not vary much with seed, typical time
2001-04-23 02:29:10 +00:00
ache
3646349667
Use formula with better random distribution for rand()
...
Even better formula from random() could not be intetgrated because rand_r()
supposed to store its state in the single variable (but table needed for
random() algorithm integration).
2001-02-27 14:42:19 +00:00
wes
07cfb42e12
Added Posix rand_r function.
1999-05-24 23:30:14 +00:00
rgrimes
be22b15ae2
BSD 4.4 Lite Lib Sources
1994-05-27 05:00:24 +00:00