Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

Item10779: Core should not call srand() to seed rand()

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine FoswikiUsers  
Perl versions prior to 5.4 required srand() be called to seed the random number generator. Recent perl including those support by Foswiki automatically call srand() internally to seed the random generator algorithm using /dev/urandom or some other system source of randomness. It is recommended that srand() no longer be called.

-- GeorgeClark - 22 May 2011

 

ItemTemplate edit

Summary Core should not call srand() to seed rand()
ReportedBy GeorgeClark
Codebase 1.1.3, trunk
SVN Range
AppliesTo Engine
Component FoswikiUsers
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:ac601b374190 distro:90bfa775d2cd distro:4e41d403b6a0
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r6 - 17 Dec 2011, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License