gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev] Re: redesign of Linux/Unix /dev/random


From: Matthias Urlichs
Subject: [gnutls-dev] Re: redesign of Linux/Unix /dev/random
Date: Tue, 21 Feb 2006 10:15:45 +0100

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.
-- 
Matthias Urlichs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]