From owner-freebsd-audit Fri Nov 24 8:47:18 2000 Delivered-To: freebsd-audit@freebsd.org Received: from server.bitmcnit.bryansk.su (bitmcnit.bryansk.ru [195.239.213.9]) by hub.freebsd.org (Postfix) with ESMTP id CCAFE37B4CF; Fri, 24 Nov 2000 08:47:07 -0800 (PST) Received: (from uucp@localhost) by server.bitmcnit.bryansk.su (8.9.3/8.9.3) with UUCP id TAA21415; Fri, 24 Nov 2000 19:34:54 +0300 Received: (from alex@localhost) by kapran.bitmcnit.bryansk.su (8.11.1/8.11.1) id eAOGXIJ04319; Fri, 24 Nov 2000 19:33:18 +0300 (MSK) (envelope-from alex@kapran.bitmcnit.bryansk.su) Date: Fri, 24 Nov 2000 19:33:17 +0300 From: Alex Kapranoff To: Kris Kennaway Cc: Sheldon Hearn , audit@FreeBSD.ORG Subject: Re: makedevops.pl and makeobjops.pl tmpfiles Message-ID: <20001124193317.D1028@kapran.bitmcnit.bryansk.su> References: <14242.974995366@axl.fw.uunet.co.za> <20001123134436.A36337@citusc17.usc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001123134436.A36337@citusc17.usc.edu>; from kris@FreeBSD.ORG on Thu, Nov 23, 2000 at 01:44:36PM -0800 X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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