This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add additional notes regarding srand and forking
authorBrian Phillips <bphillips@cpan.org>
Wed, 30 Jun 2010 15:31:25 +0000 (10:31 -0500)
committerDavid Golden <dagolden@cpan.org>
Thu, 1 Jul 2010 10:50:31 +0000 (06:50 -0400)
commitd460397bbe36e991666185c0884015fdd0a30a6d
treef1ffe5e2a9ea5034580689cadd4f182a8ff04da4
parentf507d6f025503d42282fe562873d505fd9969d0d
Add additional notes regarding srand and forking

perldoc -f srand states that typical use requires no srand() to be
called.  This is true with the exception of forking where you may not
want the same seed across various child processes (i.e. mod_perl).
This patch simply adds a note reminding the reader of this fact and
more specifically states that srand should only be called once per
*process* (instead of the previous language of once per *script*).

Signed-off-by: Brian Phillips <bphillips@cpan.org>
pod/perlfunc.pod