From owner-freebsd-current Sat Jun 10 0:31:46 2000 Delivered-To: freebsd-current@freebsd.org Received: from grimreaper.grondar.za (grimreaper.grondar.za [196.7.18.138]) by hub.freebsd.org (Postfix) with ESMTP id A1D1E37C69E; Sat, 10 Jun 2000 00:31:38 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grimreaper.grondar.za (localhost [127.0.0.1]) by grimreaper.grondar.za (8.9.3/8.9.3) with ESMTP id JAA04819; Sat, 10 Jun 2000 09:31:49 +0200 (SAST) (envelope-from mark@grimreaper.grondar.za) Message-Id: <200006100731.JAA04819@grimreaper.grondar.za> To: "Andrey A. Chernov" Cc: "Jeroen C. van Gelderen" , Mark Murray , Kris Kennaway , current@FreeBSD.ORG Subject: Re: mktemp() patch References: <20000609232358.A38967@freebsd.org> In-Reply-To: <20000609232358.A38967@freebsd.org> ; from "Andrey A. Chernov" "Fri, 09 Jun 2000 23:23:58 MST." Date: Sat, 10 Jun 2000 09:31:49 +0200 From: Mark Murray Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Then you will get collisions which you will have to deal with. I am not > > familiar with the code but if we can handle collisions nicely then that > > would be the way to go: 64^6 = 2^36 possibilities which is nice... > > 1) Just totally opposite: mixing random with non-random sources you'll get > into collision much faster then with random source only. 2) Yet, of course, > the code handles collisions. Incorrect. See my other mail; ${RANDOM} xor ${PREDICTABLE} is random. M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message