hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 6e3a224da528447a617e9b216d5185a69a5e5adb
parent ba0fcc9718113d6d2099991945f2db6c562c8309
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 11 Feb 2021 21:33:02 -0500

crypto::random: remove extraneous EAGAIN case

Diffstat:
Mcrypto/random/+linux.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/random/+linux.ha b/crypto/random/+linux.ha @@ -10,7 +10,7 @@ export fn buffer(buf: []u8) void = { for (n < len(buf)) { match (rt::getrandom(buf[n..]: *[*]u8, len(buf), 0)) { err: rt::errno => switch (err) { - rt::EINTR, rt::EAGAIN => void, + rt::EINTR => void, * => abort(), }, z: size => {