Re: [RFC] RNG fixes

From: Date: Tue, 14 Jun 2016 18:44:28 +0000
Subject: Re: [RFC] RNG fixes
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-93967@lists.php.net to get a copy of this message
On Tue, 14 Jun 2016 at 18:45 Fleshgrinder <php@fleshgrinder.com> wrote: > Why do we need so many functions to get a random int anyways if we now > have random_int()? I would like to see all of them deprecated and > removed in PHP 8.0. Lets see if others support this option. (I'm not even sure I do right now) > I do not see a problem to change array_rand(), array_shuffle(), nor > str_shuffle() since their output should be random anyways. > Right now a call to srand() with a given seed will make these functions return the same sequence of outputs for a particular set of inputs. This behaviour is fine and sometimes even desirable. The changes in this RFC will change those outputs, they will still be controllable with srand() though

« previous php.internals (#93967) next »