Actually, a better approach is to use /dev/urandom to seed a PRG. See my previous email in this thread regarding the FIPS approved generators.
Bryan -----Original Message----- From: Leigh [mailto:lei...@gmail.com] Sent: Friday, August 30, 2013 6:27 PM To: Marc Bennewitz Cc: internals@lists.php.net Subject: Re: [PHP-DEV] More powerful (and backward compatible) API of random number generator functions On 30 August 2013 20:58, Marc Bennewitz <p...@marc-bennewitz.de> wrote: > what is the best algorithm? Well that is platform dependant. For example on FreeBSD you'd hope /dev/random was used (which does not block like linux, and generates a crypto quality pseudo-random stream) Point being, "best" is not easily defined by a constant. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php