Re: [PHP6] Merging rand and mt_rand()

From: Date: Tue, 25 Feb 2014 21:39:13 +0000
Subject: Re: [PHP6] Merging rand and mt_rand()
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-72813@lists.php.net to get a copy of this message
Am 24.02.2014 21:40, schrieb Rouven Weßling: > > On 24.02.2014, at 21:02, Marc Bennewitz <php@marc-bennewitz.de > <mailto:php@marc-bennewitz.de>> wrote: > >> Each RNG has pros and cons so why only support one? > > Simple. Because PHP has too many damn ways to do one and the same > thing. And it's making the platform harder to use. Same as why we have a hash API for so much different algos - Because different algos produce different results. If one fixed defined way would be enough - Why we have mt_* functions introduced if there was rand already? > > Now, I'm genuinely curios what advantages does our rand() > implementation have over mt_rand() that I'm missing? Because that > might be a good argument to drop this whole proposal. Because it safes bc by introducing a more flexible way for other algos. > > Best regards > Rouven Marc

« previous php.internals (#72813) next »