Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 1996 21:18:22 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Subject:   Re: I plan to change random() for -current (was Re: rand() and random())
Message-ID:  <199610071918.VAA15735@uriah.heep.sax.de>
In-Reply-To: <1877.844713458@critter.tfs.com> from Poul-Henning Kamp at "Oct 7, 96 08:37:38 pm"

next in thread | previous in thread | raw e-mail | index | archive | help

As Poul-Henning Kamp wrote:


> And I think we should actually add a function that would seed it
> from /dev/random if people want random numbers, for instance
> for games.

Yep.  I wouldn't break the fact that it is pseudo-random by default
(and if i've got the ANSI reprint that can be found in K&R II right in
mind, this pseudo-randomness is the required behaviour), but an
additional function to provide a better random seed than plain `time'
is would be fine.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610071918.VAA15735>