develooper Front page | perl.perl5.porters | Postings from September 2010

Should srand(undef) be srand() or srand(0) ?

Thread Next
From:
karl williamson
Date:
September 9, 2010 06:14
Subject:
Should srand(undef) be srand() or srand(0) ?
Message ID:
4C88DDAA.5010209@khwilliamson.com
Currently srand(undef) assumes its seed is 0.  That seems wrong to me. 
Is there a reason not to change it to generate a seed in this circumstance?

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About