From owner-freebsd-current Fri Jun 9 23:53:37 2000 Delivered-To: freebsd-current@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id A392537B66E; Fri, 9 Jun 2000 23:53:34 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id XAA17619; Fri, 9 Jun 2000 23:53:34 -0700 (PDT) (envelope-from dillon) Date: Fri, 9 Jun 2000 23:53:34 -0700 (PDT) From: Matthew Dillon Message-Id: <200006100653.XAA17619@apollo.backplane.com> To: "Andrey A. Chernov" Cc: "Jeroen C. van Gelderen" , Mark Murray , Kris Kennaway , current@FreeBSD.ORG Subject: Re: mktemp() patch References: <394124C3.221E61BC@vangelderen.org> <200006092002.WAA00773@grimreaper.grondar.za> <20000609155342.B33329@freebsd.org> <39417FA5.F260EAA8@vangelderen.org> <20000609232358.A38967@freebsd.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :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. : :-- :Andrey A. Chernov : Think about it. If you mix a random number with a non-random number, using xor, what you get is.... a random number. It's neither stronger nor weaker. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message