Hello

I have a question regarding srand() usage with mod_perl. The documentation says:

=======================================================================
Do not call srand() (i.e. without an argument) more than once in a script. The internal state of the random number generator should contain more entropy than can be provided by any seed, so calling srand() again actually loses randomness.

http://perldoc.perl.org/functions/srand.html
=======================================================================

How does this relate to mod_perl? Is it safe to simply call srand() once per CGI script?

Thanks!

STF

=======================================================================
http://eisenbits.homelinux.net/~stf/
OpenPGP: 9D25 3D89 75F1 DF1D F434  25D7 E87F A1B9 B80F 8062
=======================================================================

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to