> On Sat, 4 Aug 2001, Rasmus Lerdorf wrote:
> >based on their seeds.  If I, as an application developer, distributes a
> >regression test harness which tests my app with a specific seed expecting
> >a specific sequence and the server my app runs on has switched rand() to
> >use the mt_rand() algorithm my regression test will fail.
>
> So, if you always use mt_rand() you should be okay? Since the algorithm
> for rand() might be different from system to system..?

Sure, although rand() tends to be the same everywhere as well.  At least
on all the systems I care about it is the same.  Linux, FreeBSD, OpenBSD
and Solaris all seem to use the same algorithm.

-Rasmus


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to