aboutsummaryrefslogtreecommitdiff
path: root/core/crypto
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-04 10:51:08 +0100
committergingerBill <bill@gingerbill.org>2024-08-04 10:51:08 +0100
commite60951a902976acfef74b863463bb116858366c5 (patch)
tree0bfb984d7a1f788223a230918cd3ab2017fd0752 /core/crypto
parent71932628cc3c1957a98e998740b059df9b7dd392 (diff)
Begin converting `os.Errno` to be a `nil`-able type as a transition period
Diffstat (limited to 'core/crypto')
-rw-r--r--core/crypto/rand_windows.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/crypto/rand_windows.odin b/core/crypto/rand_windows.odin
index 9cd647cc1..6392cd51f 100644
--- a/core/crypto/rand_windows.odin
+++ b/core/crypto/rand_windows.odin
@@ -10,7 +10,7 @@ HAS_RAND_BYTES :: true
_rand_bytes :: proc(dst: []byte) {
ret := (os.Errno)(win32.BCryptGenRandom(nil, raw_data(dst), u32(len(dst)), win32.BCRYPT_USE_SYSTEM_PREFERRED_RNG))
if ret != os.ERROR_NONE {
- switch ret {
+ #partial switch ret {
case os.ERROR_INVALID_HANDLE:
// The handle to the first parameter is invalid.
// This should not happen here, since we explicitly pass nil to it