Re: libc6: fread(buf, 1, 1) from urandom consumes 4096 bytes of entropy

2011-08-04 Thread Philipp Marek
Hello Jonathan! On Wednesday 03 August 2011, Jonathan Nieder wrote: > Philipp Marek wrote: > > I think that on sockets, pipes, character devices, and similar there > > should be _no_ readahead. > > On the contrary, on sockets and pipes, readahead is very useful. > Luckily buffering there works a

Re: libc6: fread(buf, 1, 1) from urandom consumes 4096 bytes of entropy

2011-08-04 Thread Jonathan Nieder
Philipp Marek wrote: > I think that on sockets, pipes, character devices, and similar there should > be _no_ readahead. On the contrary, on sockets and pipes, readahead is very useful. Luckily buffering there works a little closer to what you would expect --- read() returns early with what is av