NetBSD-Bugs archive

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

Re: lib/56905: getentropy() may return predictable data



The following reply was made to PR lib/56905; it has been noted by GNATS.

From: nia <nia%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/56905: getentropy() may return predictable data
Date: Wed, 29 Jun 2022 17:23:55 +0000

 On Wed, Jun 29, 2022 at 05:00:03PM +0000, Robert Elz wrote:
 >  But what no-one wants, is processes hanging forever because they're waiting
 >  on entropy arriving, from somewhere unknown, which no-one cares (or perhaps
 >  knows) enough about to create.   That's what all the complaints have been
 >  about.   Note "forever" in the hanging - when there's no initial entropy,
 >  and nothing providing any, the loop you're proposing adding never terminates.
 
 Forever hanging also very much goes against the specification
 accepted by the Austin Group, if you want to indicate failure
 it should return -1 and set errno instead.
 
 However that should also not be the default behavior for compatibility
 raisins.
 


Home | Main Index | Thread Index | Old Index