RE: [PHP-DEV] More powerful (and backward compatible) API of random number generator functions

From: 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 [email protected] 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:[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)

« previous php.internals (#68774) next »