Re: [PHP6] Merging rand and mt_rand()

From: Date: Sun, 23 Feb 2014 20:22:49 +0000
Subject: Re: [PHP6] Merging rand and mt_rand()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-72774@lists.php.net to get a copy of this message
Hi! > Changing the random number generation algorithm is a BC break, e.g. tests > could rely on certain random number sequences for a certain seed. However I would say anybody who relies on RNG producing preset numbers is asking for trouble. If you need mock RNG, mock it out, don't rely on undocumented properties of the system one. But then again, refactoring and unifying RNGs is not very urgent thing and a good candidate to put in a major version. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#72774) next »