Bring in a better seeding and random number generation algorithm from
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 17 May 2004 07:35:55 +0000 (07:35 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 17 May 2004 07:35:55 +0000 (07:35 +0000)
commit7b39b21b9eddc5c8c0a213f0890ba59237298982
tree281d66496a77590237fc5c5fcaaf9d4e47ed7ddb
parent5daa25b05ec172803258b0c1f1148cadfccdba9e
Bring in a better seeding and random number generation algorithm from
FreeBSD for the (old) rand() API.  Add sranddev() to the library and clean
up the manual page.  Note that we are currently using /dev/urandom to
generate the seed to avoid boot-time blocking issues.

Submitted-by: "William M. Grim" <wgrim@siue.edu>
Reviewed by: Joerg Sonnenberger and others
lib/libc/stdlib/rand.3
lib/libc/stdlib/rand.c