From owner-freebsd-audit Thu Nov 23 23:13:49 2000 Delivered-To: freebsd-audit@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id 2FDBF37B4C5; Thu, 23 Nov 2000 23:13:45 -0800 (PST) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 13zD35-0000us-00; Fri, 24 Nov 2000 09:13:31 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id JAA28414; Fri, 24 Nov 2000 09:13:41 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 28350; Fri Nov 24 09:13:04 2000 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.16 #1) id 13zD2d-00008F-00; Fri, 24 Nov 2000 09:13:03 +0200 From: Sheldon Hearn To: Kris Kennaway Cc: audit@freebsd.org Subject: Re: makedevops.pl and makeobjops.pl tmpfiles In-reply-to: Your message of "Thu, 23 Nov 2000 13:44:36 PST." <20001123134436.A36337@citusc17.usc.edu> Date: Fri, 24 Nov 2000 09:13:03 +0200 Message-ID: <510.975049983@axl.fw.uunet.co.za> Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 23 Nov 2000 13:44:36 PST, Kris Kennaway wrote: > Thanks for the patch, Sheldon. This one has been annoying me for a > while. However, I think I prefer the above option as a more generic > solution. I presume it includes functionality similar to mkstemp(). I should mention that I made a mistake. It's OpenBSD that has imported File::Temp, not NetBSD. I prefer the idea of importing it as well. > What libc function does rand() call? random(), by the sounds of it. I don't think so. My take on src/contrib/perl5/t/op/rand.t is that they use their own homegrown rand.t. > > + $ctmpname = "$tmpdir/ctmp." . rand(9999); > > + $htmpname = "$tmpdir/htmp." . rand(9999); > > Any particular reason for not using rand(999999999) or so? :-) Nope. I just wasn't sure how large a number I could safely request. Cia, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message