2009/4/4 "Stanisław T. Findeisen" <sf181...@students.mimuw.edu.pl>:
> How does this relate to mod_perl? Is it safe to simply call srand() once per
> CGI script?

It's safe, although there's not much reason to do it unless you have
access to something more random than what it will use by default.  You
should not call srand more than once in a running perl interpreter,
which is why the mod_perl docs advise against it.  The mod_perl docs
there are basically a quote from the perlfunc manpage:
http://perldoc.perl.org/functions/srand.html

- Perrin

Reply via email to