Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2000 19:33:17 +0300
From:      Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
To:        Kris Kennaway <kris@FreeBSD.ORG>
Cc:        Sheldon Hearn <sheldonh@uunet.co.za>, audit@FreeBSD.ORG
Subject:   Re: makedevops.pl and makeobjops.pl tmpfiles
Message-ID:  <20001124193317.D1028@kapran.bitmcnit.bryansk.su>
In-Reply-To: <20001123134436.A36337@citusc17.usc.edu>; from kris@FreeBSD.ORG on Thu, Nov 23, 2000 at 01:44:36PM -0800
References:  <14242.974995366@axl.fw.uunet.co.za> <20001123134436.A36337@citusc17.usc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 23, 2000 at 01:44:36PM -0800, Kris Kennaway wrote:
> On Thu, Nov 23, 2000 at 06:02:46PM +0200, Sheldon Hearn wrote:
> > The perl5.6.0's srand() subroutine seeds the PRNG from /dev/urandom,
> > so we don't have to worry too much about a guessable seed.  In fact,
> > the call to srand() shouldn't be required at all, since perl5.6.0
> > automatically calls srand() if it has not yet been called by the time
> > rand() is first called.
> 
> What libc function does rand() call? random(), by the sounds of it.

  It seems that perl on FreeBSD uses drand48(3) as a base for its
rand() function.

-- 
Alex Kapranoff,                              Voice: +7(0832)791845
892 hours before the brand new millenium...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001124193317.D1028>