Re: [uml-user] Re: user-mode port 0.56-2.4.18-15

Andreas Dilger (adilger@clusterfs.com)
Tue, 9 Apr 2002 21:53:12 -0600


On Apr 09, 2002 20:44 -0500, Jeff Dike wrote:
> Doesn't /dev/urandom have exactly the same DOS properties as /dev/random?
> I.e. it reads real random numbers until the entropy pool is empty, then
> starts returning pseudo-random numbers? If so, things on the host will
> still hang when they then try to read /dev/random.

You are correct. Reading from /dev/urandom consumes just as much
entropy as reading from /dev/random. It just doesn't block when the
entropy pool is random.

Hmm, maybe this should be fixed by refilling the urandom entropy pool
much less often...

Cheers, Andreas

--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/