You are here: Foswiki>Tasks Web>Item10779 (17 Dec 2011, GeorgeClark)Edit Attach

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

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: FoswikiUsers
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy