Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2001 20:34:56 +0200
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Mark Murray <mark@grondar.za>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, Doug Barton <DougB@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: Randomness and vi
Message-ID:  <3A5F4E50.B8FC5A97@FreeBSD.org>
References:  <200101121653.LAA58236@khavrinen.lcs.mit.edu> <200101121826.f0CIQHI14502@gratis.grondar.za>

next in thread | previous in thread | raw e-mail | index | archive | help
Mark Murray wrote:

> > <<On Fri, 12 Jan 2001 01:52:55 -0800, Doug Barton <DougB@FreeBSD.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A5F4E50.B8FC5A97>