On Tuesday 02 August 2011, Jonathan Nieder wrote:
Not sure what libc can do about that. Maybe the kernel could say,
Please, do not buffer when reading this file and libc could respect
that. But fundamentally, buffering is what fread is all about,
...
In the C and POSIX standards, the
# complex
severity 636266 wishlist
retitle 636266 libc6: fread(buf, 1, 1) from urandom consumes 4096 bytes of
entropy
tags 636266 + upstream
quit
Hi Philipp,
Ph. Marek wrote:
fopen()/fread() is used by some software packages (I noticed it via ECL) to
read data from /dev/urandom.
But
Package: libc6
Version: 2.13-10
Severity: normal
fopen()/fread() is used by some software packages (I noticed it via ECL) to
read data from /dev/urandom.
But fread() reads more bytes than specified (rounded up to 4096!), thereby
decreasing the available entropy by a large amount.
To test,
3 matches
Mail list logo