Re: srand

2009-04-06 Thread Philippe M. Chiasson
On 4/4/09 19:52, Adam Prime wrote: > Stanisław T. Findeisen wrote: >> Hello >> >> I have a question regarding srand() usage with mod_perl. The >> documentation says: >> >> === >> Do not call srand() (i.e. without an argument) mo

Re: srand

2009-04-04 Thread Perrin Harkins
2009/4/4 "Stanisław T. Findeisen" : > 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 th

Re: srand

2009-04-04 Thread Adam Prime
Stanisław T. Findeisen wrote: 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 ra