Re: [RFC] RNG fixes

From: Date: Wed, 29 Jun 2016 15:03:42 +0000
Subject: Re: [RFC] RNG fixes
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-94324@lists.php.net to get a copy of this message
I think I've caught up on everything discussed now. One thing I would like to point out, when people have searched for "legitimate uses" of mt_rand(), you should have been looking for legitimate uses of mt_srand() - this is the functionality that will be broken. On 16 June 2016 at 03:21, Pierre Joye <pierre.php@gmail.com> wrote: > There are ways to achieve what you want in a nice way while not breaking > things. Let consider them. > > Cheers, > Pierre So what would you suggest? mt_rand_mode() with constants for correct and legacy? (defaulting to correct, and a single fcall for users to get the old behaviour back)

« previous php.internals (#94324) next »