login
Header Space

 
 

Re: Why does reading from /dev/urandom deplete entropy so much?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Marc Haber <mh+linux-kernel@...>
Cc: Eric Dumazet <dada1@...>, Alan Cox <alan@...>, Adrian Bunk <bunk@...>, <linux-kernel@...>, David S. Miller <davem@...>
Date: Monday, December 10, 2007 - 7:35 pm

On Tue, Dec 11, 2007 at 12:06:43AM +0100, Marc Haber wrote:

/dev/urandom always leaves enough entropy in the input pool for
/dev/random to reseed. Thus, as long as entropy is coming in, it is
not possible for /dev/urandom readers to starve /dev/random readers.
But /dev/random readers may still block temporarily and they should
damn well expect to block if they read 500 bytes out of a 512 byte
pool.

-- 
Mathematics is the supreme nostalgia of our time.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Why does reading from /dev/urandom deplete entropy so mu..., Matt Mackall, (Mon Dec 10, 7:35 pm)
speck-geostationary