From owner-freebsd-current Thu Jun 8 9:48:49 2000 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 542) id 9C62737C096; Thu, 8 Jun 2000 09:48:46 -0700 (PDT) Date: Thu, 8 Jun 2000 09:48:46 -0700 From: "Andrey A. Chernov" To: Bruce Evans Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: mktemp() patch Message-ID: <20000608094846.A53442@freebsd.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from bde@zeta.org.au on Thu, Jun 08, 2000 at 09:50:48PM +1000 Organization: Biomechanoid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message