From owner-freebsd-questions@FreeBSD.ORG Thu Sep 13 16:31:59 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95EF216A468 for ; Thu, 13 Sep 2007 16:31:59 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 5E87213C512 for ; Thu, 13 Sep 2007 16:31:59 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id CDB495193C for ; Thu, 13 Sep 2007 12:31:57 -0400 (EDT) Date: Thu, 13 Sep 2007 17:31:55 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070913173155.0bad12b2@gumby.homeunix.com.> In-Reply-To: <20070913153630.GA9448@slackbox.xs4all.nl> References: <46E94F9A.6050707@intersonic.se> <20070913153630.GA9448@slackbox.xs4all.nl> X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: /dev/random question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 16:31:59 -0000 On Thu, 13 Sep 2007 17:36:30 +0200 Roland Smith wrote: > On Thu, Sep 13, 2007 at 04:56:26PM +0200, Per olof Ljungmark wrote: > > Hi, > > > > Could someone on the list point me to a document that explains the > > functionality of /dev/random in FreeBSD in a little more depth than > > the man page? In other OS's I've looked at random and urandom are > > different, here it's a symlink (talking about RELENG-6 onwards). > > FreeBSD uses the yarrow algorithm, as mentioned in random(4). See > http://en.wikipedia.org/wiki/Yarrow_algorithm > http://www.schneier.com/yarrow.html Yarrow is reseeded with interrupt entropy, and is supposedly good enough not to require the amount of entropy to be tracked. So /dev/random need not block, and there's no need for a separate non-blocking device.