Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2000 09:13:03 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        Kris Kennaway <kris@freebsd.org>
Cc:        audit@freebsd.org
Subject:   Re: makedevops.pl and makeobjops.pl tmpfiles 
Message-ID:  <510.975049983@axl.fw.uunet.co.za>
In-Reply-To: Your message of "Thu, 23 Nov 2000 13:44:36 PST." <20001123134436.A36337@citusc17.usc.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help


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




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