cleanup of os/linux

This commit is contained in:
Colin Davidson
2023-02-28 01:17:43 -08:00
parent 76cb3b7874
commit edd78ae129
4 changed files with 73 additions and 172 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ _rand_bytes :: proc (dst: []byte) {
for l > 0 {
to_read := min(l, _MAX_PER_CALL_BYTES)
ret := unix.sys_getrandom(raw_data(dst), to_read, 0)
ret := unix.sys_getrandom(raw_data(dst), uint(to_read), 0)
if ret < 0 {
switch os.Errno(-ret) {
case os.EINTR: