Re: [PHP] mt_rand() - the same forever?

2008-10-06 Thread Janek
On Mon, Oct 6, 2008 at 1:53 PM, Eric Butera [EMAIL PROTECTED] wrote: On Sun, Oct 5, 2008 at 2:25 PM, Janek [EMAIL PROTECTED] wrote: I wonder whether I can rely on the stability of mt_srand() and mt_rand(). I want them to generate the same sequence for a fixed seed, regardless of PHP version

[PHP] mt_rand() - the same forever?

2008-10-05 Thread Janek
I wonder whether I can rely on the stability of mt_srand() and mt_rand(). I want them to generate the same sequence for a fixed seed, regardless of PHP version. Do you think I can trust it? Janek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] mt_rand() - the same forever?

2008-10-05 Thread Janek
I know, but I *want* to seed it. My goal is to have a fixed pseudorandom sequence for each integer (seed) and I don't want those sequences to change regarding PHP version. Janek On Sun, Oct 5, 2008 at 9:52 PM, Richard Heyes [EMAIL PROTECTED] wrote: I wonder whether I can rely on the stability

Re: [PHP] mt_rand() - the same forever?

2008-10-05 Thread Janek
On Sun, Oct 5, 2008 at 10:05 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Sun, 2008-10-05 at 21:57 +0200, Janek wrote: I know, but I *want* to seed it. My goal is to have a fixed pseudorandom sequence for each integer (seed) and I don't want those sequences to change regarding PHP version