Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2000 09:48:46 -0700
From:      "Andrey A. Chernov" <ache@freebsd.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Kris Kennaway <kris@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: mktemp() patch
Message-ID:  <20000608094846.A53442@freebsd.org>
In-Reply-To: <Pine.BSF.4.21.0006082054040.513-100000@besplex.bde.org>; from bde@zeta.org.au on Thu, Jun 08, 2000 at 09:50:48PM %2B1000
References:  <Pine.BSF.4.21.0006071758550.11848-100000@freefall.freebsd.org> <Pine.BSF.4.21.0006082054040.513-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 08, 2000 at 09:50:48PM +1000, Bruce Evans wrote:
> I think it should use only letters and digits.  For 6 X's, this gives a
> namespace of size 52^6 provided the namespace is not gratuitously (?)
> reduced using the pid.

Best variant will be to keep the name MSDOS FS 8.3 name safe.

> Why are we still using the pid?  It is highly non-random.  It was originally

I agree. We must not use getpid() since we have arc4random().

-- 
Andrey A. Chernov
<ache@nagual.pp.ru>
http://ache.pp.ru/


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




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