From: Roderick Schertler Date: Wed, 9 Sep 1998 23:52:48 +0000 (-0400) Subject: seed srand from /dev/urandom when possible X-Git-Tag: accepted/trunk/20130322.191538~37101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73c6029944b44f3e88040c33146d1e133b187ca4;p=platform%2Fupstream%2Fperl.git seed srand from /dev/urandom when possible Message-ID: <20567.905399568@eeyore.ibcinc.com> p4raw-id: //depot/perl@1847 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index b20981d..a300f4a 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -3618,7 +3618,8 @@ root of C<$_>. =item srand Sets the random number seed for the C operator. If EXPR is -omitted, uses a semi-random value based on the current time and process +omitted, uses a semi-random value supplied by the kernel (if it supports +the F device) or based on the current time and process ID, among other things. In versions of Perl prior to 5.004 the default seed was just the current C. This isn't a particularly good seed, so many old programs supply their own seed value (often C