From:             [EMAIL PROTECTED]
Operating system: all
PHP version:      4.0.4pl1
PHP Bug Type:     Feature/Change Request
Bug description:  srand() -- seed should default to (double)microtime()*1000000

In the user notes for srand(), [EMAIL PROTECTED] said:

>*ALWAYS* use (double)microtime()*1000000 as your seed. 
>Do *NOT* just use time(). Do not add an extra 0 to make it "bigger". 
>Anything else is sub-standard.

If so, why not make the seed argument optional, and make the default
(double)microtime()*1000000 when the argument is absent? Save me a
few keystrokes, anyway, and help make sure people don't do it in a 
"sub-standard" fashion...  :)

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to