Re: [RFC] RNG fixes

From: Date: Wed, 22 Jun 2016 14:23:18 +0000
Subject: Re: [RFC] RNG fixes
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-94203@lists.php.net to get a copy of this message
On 6/21/16 3:23 PM, Lester Caine wrote:
Can someone explain why I should need 'crypto safe' random numbers when ALL *I* use rand for is to give a random order to content items on the page.
I cannot.
Something more in sync with the shuffle and array_rand without the need to recode to actually use the array functions, or simply select an entry at random from a list.
Similarly, when I randomize the time before a daemon next wakes up, I don't think random_int() is appropriate. mt_rand() is entirely suitable. And upgrading to a more efficient RNG like PCG would be daft. Tom

« previous php.internals (#94203) next »