RE: [PHP-DEV] More powerful (and backward compatible) API of random number generator functions
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:[email protected]]
Sent: Friday, August 30, 2013 6:27 PM
To: Marc Bennewitz
Cc: [email protected]
Subject: Re: [PHP-DEV] More powerful (and backward compatible) API of random
number generator functions
On 30 August 2013 20:58, Marc Bennewitz <[email protected]> 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.
Thread (12 messages)