RE: [PHP-DEV] More powerful (and backward compatible) API of random number generator functions
| From: | Bryan C. Geraghty | Date: | Sat, 31 Aug 2013 01:31:27 +0000 |
| Subject: | RE: [PHP-DEV] More powerful (and backward compatible) API of random number generator functions | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68774@lists.php.net to get a copy of this message | ||
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:leight@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 <php@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.