From owner-freebsd-current@FreeBSD.ORG Thu Mar 10 07:00:35 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30E4016A4CE for ; Thu, 10 Mar 2005 07:00:35 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 585FF43D55 for ; Thu, 10 Mar 2005 07:00:34 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j2A70X3I031221; Thu, 10 Mar 2005 08:00:33 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Andrey Chernov From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 10 Mar 2005 09:51:26 +0300." <20050310065126.GA28001@nagual.pp.ru> Date: Thu, 10 Mar 2005 08:00:33 +0100 Message-ID: <31220.1110438033@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: current@FreeBSD.ORG Subject: Re: [TEST(/review)] major/minor/devname fix X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 07:00:35 -0000 In message <20050310065126.GA28001@nagual.pp.ru>, Andrey Chernov writes: >On Thu, Mar 10, 2005 at 07:32:39AM +0100, Poul-Henning Kamp wrote: >> There is no risk of collision, look at what devfs_random() does. > >What happens with whole devfs_random() logic, in case first devfs_seed >obtained after masking with 0xf0f becomes 0 again (as it was before)? And >second? And third? It may happens especially in some "no good entropy yet" >scenario. Then somebody beats our PRNG maintainers over the head until they get their act together. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.