On Sat, 4 Aug 2001, Rasmus Lerdorf wrote:
>> 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.
Then why do some people have troubles with rand() on Solaris? :)
Or is it some specific version of it?
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]