From owner-cvs-all@FreeBSD.ORG Fri Aug 8 21:00:19 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A1421065677; Fri, 8 Aug 2008 21:00:19 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id EA1BB8FC17; Fri, 8 Aug 2008 21:00:18 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.2/8.14.2) with ESMTP id m78L0F17071920; Sat, 9 Aug 2008 01:00:15 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1218229215; bh=q0nToLEyAkUrCjpaKDpa0jwW87CFrfqOmxhveVn Zkjs=; l=877; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=ZiVfXLtPz66aQ5SO5MECbpQ3Z 21DlQ6gcdYorqEWHei+7/5bnkIJukv2KBR8rDV4deGYrHMHANe29cJsK7J2eARpPec5 qMMzlFnD3omyTfSdMBijSVZ83kPi9khgQMWptspBzWiMLe2DT7iIIVqZJ+aB6CPbvYo a4UUGMNF+H1w= Received: (from ache@localhost) by nagual.pp.ru (8.14.2/8.14.2/Submit) id m78L0EVh071919; Sat, 9 Aug 2008 01:00:14 +0400 (MSD) (envelope-from ache) Date: Sat, 9 Aug 2008 01:00:13 +0400 From: Andrey Chernov To: David Malone Message-ID: <20080808210012.GA71737@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , David Malone , "M. Warner Losh" , kris@FreeBSD.org, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <489B797F.7020101@FreeBSD.org> <20080807230532.GA42775@nagual.pp.ru> <489B81AC.8090508@FreeBSD.org> <20080808.002150.-1037138460.imp@bsdimp.com> <20080808204329.GA64169@walton.maths.tcd.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080808204329.GA64169@walton.maths.tcd.ie> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: cvs-src@FreeBSD.org, kris@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, "M. Warner Losh" Subject: Re: cvs commit: src/games/fortune/strfile strfile.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 21:00:19 -0000 On Fri, Aug 08, 2008 at 09:43:29PM +0100, David Malone wrote: > On Fri, Aug 08, 2008 at 12:21:50AM -0600, M. Warner Losh wrote: > > This does beg the question why we need cryptographically secure > > randomness for fortune, however... > > I seem to remember us catching a /dev/random related bug because > fortune displayed the same quote too often. Something to do with > seeding maybe? It was random kernel module bug fixed long time ago (perhaps due to furtune help :) Speking in general, now even in the situation when absolutely no random enthropy available at the call moment (very unlikely because of disks or net etc. activity), kernel PRNG seeded with time, so plays not worse that old time+getpid seeding used everywhere counting the fact that pids are sequentual during the boot so it is better not relay on them. -- http://ache.pp.ru/