![]() |
|
Message-ID: <CAKpSnp+GVFSdvLVRVHDg6VVQFNWbz6BW5BEQyKLhfvC2vQc8HQ@mail.gmail.com>
Date: Wed, 19 Mar 2025 19:05:40 +0000
From: Jorge Almeida <jjalmeida@...il.com>
To: musl@...ts.openwall.com
Subject: getrandom return value
The man page for getrandom() says a call like
getrandom(buf, len, 0) should always return len, as long as len <= 256.
Clear enough. But then the page says "the careful programmer will check for
this [return value] anyway!"
This is certainly confusing. Maybe this means that not all implementations
should be trusted? Some other reason?
Anyway, what is the state of affairs in musl? Can I safely discard that
seemingly strange warning?
Jorge Almeida
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.