From owner-freebsd-current@FreeBSD.ORG Sat Jul 23 08:16:34 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG 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 7B3DF16A41F; Sat, 23 Jul 2005 08:16:34 +0000 (GMT) (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 A3B2543D49; Sat, 23 Jul 2005 08:16:33 +0000 (GMT) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.4/8.13.4) with ESMTP id j6N8GW7D033720; Sat, 23 Jul 2005 12:16:32 +0400 (MSD) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.13.4/8.13.4/Submit) id j6N8GWI6033719; Sat, 23 Jul 2005 12:16:32 +0400 (MSD) (envelope-from ache) Date: Sat, 23 Jul 2005 12:16:32 +0400 From: Andrey Chernov To: "Greg 'groggy' Lehey" Message-ID: <20050723081631.GA33648@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Greg 'groggy' Lehey , Doug Barton , freebsd-current@FreeBSD.ORG References: <200507230146.j6N1koqL061690@repoman.freebsd.org> <20050723015517.GA28428@nagual.pp.ru> <20050723020120.GV842@wantadilla.lemis.com> <42E1DFCE.6090506@FreeBSD.org> <20050723064449.GZ842@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <20050723064449.GZ842@wantadilla.lemis.com> User-Agent: Mutt/1.5.9i Cc: Doug Barton , freebsd-current@FreeBSD.ORG Subject: Re: cvs commit: src/games/fortune/fortune fortune.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 23 Jul 2005 08:16:34 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 23, 2005 at 04:14:49PM +0930, Greg 'groggy' Lehey wrote: > On Friday, 22 July 2005 at 23:12:30 -0700, Doug Barton wrote: > > Changing venue to -current, since these kinds of protracted discussions > > don't belong on the commit mailing lists. > > > > Greg 'groggy' Lehey wrote: > > > >> But for whatever reasons, many systems seem to have incorrect > >> random(4) initialization. > > > > I don't think it has anything to do with /dev/random initialization, I > > think that there is an error somewhere in the fortune code that is caus= ing > > this problem. >=20 > You should take a look at what I committed. It simply uses the > microsecond value returned by getlocaltime() for the automatic seeding > by srandomdev(). It fixes the problem. I can see only two > explanations: Well, I am not advocate /dev/random initialization bug in preference of=20 fortune bug. But your "fix" not fix _anything_ in _either_ case, for=20 fortune bug or for /dev/random bug. Better back it out and seek true bug.= =20 For fortune bug you can turn on DPRINTF at least and see what really=20 happens. Since I can't reproduce it, I can't help, only people who can=20 reproduce. --=20 http://ache.pp.ru/ --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iQCVAwUBQuH83+JgpPLZnQjrAQLDegQAiF/q7LWByUNOUg+penS2WJz5s+u6feuT FrKP8xf/1YOJwmwf0z3wkMxIHA6diVHEEUPkDQhHTryA+IquI8xbPDexmPyl/PfV Gxg9ajdGdVqadljmDx90mPEa+LP6E3fzOsWNSIHjZDMbc6+3KuWiHCBrAnfF6dor mvFdfpSyokg= =Vc2W -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--