Subject: CVS commit: src/sys/dev
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 04/15/2005 20:21:23
Module Name:	src
Committed By:	drochner
Date:		Fri Apr 15 20:21:23 UTC 2005

Modified Files:
	src/sys/dev: rnd.c

Log Message:
Don't ENXIO on open("/dev/random") if there is not enough
entropy collected. It's undocumented, noone else does it and
it leads to "named" errors during boot for me.
Generally, consumers of "/dev/random" should be prepared to wait.
(The other uses of "rnd_have_entropy" look bogus to me too,
but this needs more consideration.)


To generate a diff of this commit:
cvs rdiff -r1.46 -r1.47 src/sys/dev/rnd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.