diff options
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/sysrand.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/sysrand.nim b/lib/std/sysrand.nim index eeaa23d72..b5f61372a 100644 --- a/lib/std/sysrand.nim +++ b/lib/std/sysrand.nim @@ -194,8 +194,8 @@ elif defined(linux) and not defined(nimNoGetRandom) and not defined(emscripten): elif readBytes > 0: inc(result, readBytes) else: - if osLastError().int in {EINTR, EAGAIN}: - discard + case osLastError().int + of EINTR, EAGAIN: discard else: result = -1 break |