From owner-cvs-all Fri Jan 12 10:49:25 2001 Delivered-To: cvs-all@freebsd.org Received: from blizzard.sabbo.net (ns.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id D551D37B402; Fri, 12 Jan 2001 10:48:55 -0800 (PST) Received: from vic.sabbo.net (root@vic.sabbo.net [193.193.218.112]) by blizzard.sabbo.net (8.10.1/8.10.1) with ESMTP id f0CImeb18581; Fri, 12 Jan 2001 20:48:41 +0200 Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.11.1/8.9.3) with ESMTP id f0CIZ3r23239; Fri, 12 Jan 2001 20:35:03 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Message-ID: <3A5F4E50.B8FC5A97@FreeBSD.org> Date: Fri, 12 Jan 2001 20:34:56 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Mark Murray Cc: Garrett Wollman , Doug Barton , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: Randomness and vi References: <200101121653.LAA58236@khavrinen.lcs.mit.edu> <200101121826.f0CIQHI14502@gratis.grondar.za> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Murray wrote: > > < said: > > > > > found out the hard way that vi needs randomness to run when I was doing > > > > vi doesn't need randomness to run. However, some overzealous coder > > may have changed it to waste good randomness when all it needs to do > > is feed its PRNG. I have seen several instances of this (not naming > > names) but did not think to protest. > > Hmm. The whole usr.games area is well infected with srandomdev. IMO, > srandom(time ^ pid) is sufficient. I suspect that in fact vi relies upon mkstemp, which IMHO by definition should use secure RNG. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message