Re: srand thought
| From: | John Lim | Date: | Fri, 03 May 2002 07:40:02 +0000 |
| Subject: | Re: srand thought | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95839@lists.php.net to get a copy of this message | ||
Hello Gerard,
The point is that we wanted adodb to work "out of the box" so that is
why srand( ) is called. You can do it yourself if you want to (and comment
out the srand) , or let adodb do it for you.
Regards John
"Gerard Samuel" <gsam@trini0.org> wrote in message
news:3CD1958C.6010209@trini0.org...
> Quick question. Im using srand to seed array_rand in a script.
> I read that srand should only be called once per script under the srand
> manual page.
> Im using ADODB, and that also uses srand. Now should that warning be a
> literal warning or should that
> be 'use srand once per page'??
>
> Thanks
>