Re: rand(), mt_rand() and limits

From: Date: Mon, 12 Jan 2015 01:08:10 +0000
Subject: Re: rand(), mt_rand() and limits
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-80398@lists.php.net to get a copy of this message
Hey Stas, > On 12 Jan 2015, at 01:03, Stanislav Malyshev <smalyshev@gmail.com> wrote: > > Having new, better API is fine. Breaking existing working code because > new, better API is possible, is not fine. The manual explicitly guarantees that code should not rely on the random number generator being predictable. If people want their existing code to continue to work, we could of course allow this new API to support the C stdlib rand() as an algorithm for BC reasons. But such code was never supposed to work in this first place. -- Andrea Faulds http://ajf.me/

« previous php.internals (#80398) next »