note 24562 rejected from function.srand by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Wed, 21 Aug 2002 21:48:11 +0000 |
| Subject: | note 24562 rejected from function.srand by jmcastagnetto | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-35326@lists.php.net to get a copy of this message | ||
Ok, so calling srand a second time based on a value that is likely to be similar to the first one is
a bad idea, but what about always calling it as:
srand(microtime() * rand(10000, 2000000))
If we've been called previously, the seed will be based on a presumably random value...
Can anyone who knows what they're talking about make any comment?