Re: RFC: mt_* functions

From: Date: Sat, 04 Aug 2001 22:57:08 +0000
Subject: Re: RFC: mt_* functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62104@lists.php.net to get a copy of this message
> 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

« previous php.dev (#62104) next »