Re: [PHP6] Merging rand and mt_rand()
Am 24.02.2014 21:40, schrieb Rouven Weßling:
>
> On 24.02.2014, at 21:02, Marc Bennewitz <[email protected]
> <mailto:[email protected]>> 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
Thread (15 messages)