Re: rand function definition
| From: | Philip Olson | Date: | Thu, 14 Mar 2002 19:34:30 +0000 |
| Subject: | Re: rand function definition | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969343061@lists.php.net to get a copy of this message | ||
> > Fixed. Also, anyone have word as to when or if
> > rand functions "auto seed" if seeds don't exist?
>
> After some testing I can safely say they're auto-seeded.
I should have read NEWS and not main Changelog. On Oct. 07 in:
http://bonsai.php.net/cvslog.cgi?file=/php4/ext/standard/rand.c
Reads:
Have rand() and mt_rand() seed automatically if srand() or
mt_srand() has not been called. (Sterling)
This is in 4.2.0 NEWS too, doh! :)
Regards,
Philip Olson