[gnutls-dev] Re: redesign of Linux/Unix /dev/random
smurf at smurf.noris.de
Tue Feb 21 10:15:45 CET 2006
Hi, Travis H. wrote:
> One interesting suggestion Terry Ritter had was to provide the
> available random bits in a buffer, and tell the application that you
> could only fulfill part of its request immediately, giving the
> application the opportunity to decide what to do. I'm not sure how
> this would fit into the Unix I/O model, but I suspect something could
> be done (poll/select perhaps?).
Just do a short read (i.e. return less than requested). Presumably the
application would then select/poll for more bits if it needs them.
More information about the Gnutls-devel