Re: [PHP6] Merging rand and mt_rand()
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
Thread (15 messages)