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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php