perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stanisław T. Findeisen" <sf181...@students.mimuw.edu.pl>
Subject srand
Date Sat, 04 Apr 2009 21:29:58 GMT
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
=======================================================================


Mime
View raw message