Subject: Re: /dev/random without random sources blocking forever?
To: Garrett D'Amore <firstname.lastname@example.org>
From: Bill Studenmund <email@example.com>
Date: 08/21/2006 13:38:39
Content-Type: text/plain; charset=us-ascii
On Mon, Aug 21, 2006 at 01:20:59PM -0700, Garrett D'Amore wrote:
> Jorge Acereda Maci? wrote:
> > Hi,
> > I've noticed that reading from /dev/random without attaching a random
> > source (or specifying only a source of type RND_TYPE_NET) blocks
> > forever. Is this the intended behaviour?
> > I'm running -current for ofppc which ATM doesn't attach any random
> > sources.
> Yes, without random sources, you can't get any entropy bits. Solution
> is to add sources for entropy. Alternatively, use /dev/urandom which
> gives back data without blocking, but might not be cryptographically robu=
If you don't have ANY entropy sources, wouldn't it be better to error out=
on the read? Yes, if you don't have any entropy sources, you shouldn't use=
/dev/random. But "Don't do that" seems a better response than blocking=20
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)
-----END PGP SIGNATURE-----