| author | |
| committer | |
| log | a11dfaf61aa83df6c58b647e20c1a03d2e767f7b |
| tree | ce79687fa3c7560f2d737df9d31644aa7edbde1f |
| parent | 35f013db11ff90ab9c75b028dc58b50d4f06ee42 |
| parent | 79f60302d659c7719f8b9b6b35629d7450459030 |
| signature |
std.posix: Fix getRandomBytesDevURandom()2 files changed, 2 insertions(+), 2 deletions(-)
lib/std/c.zig+1-1| ... | ... | @@ -10353,7 +10353,7 @@ pub extern "c" fn setrlimit64(resource: rlimit_resource, rlim: *const rlimit) c_ |
| 10353 | 10353 | |
| 10354 | 10354 | pub const arc4random_buf = switch (native_os) { |
| 10355 | 10355 | .linux => if (builtin.abi.isAndroid()) private.arc4random_buf else {}, |
| 10356 | .dragonfly, .netbsd, .freebsd, .solaris, .openbsd, .macos, .ios, .tvos, .watchos, .visionos => private.arc4random_buf, | |
| 10356 | .dragonfly, .netbsd, .freebsd, .solaris, .openbsd, .serenity, .macos, .ios, .tvos, .watchos, .visionos => private.arc4random_buf, | |
| 10357 | 10357 | else => {}, |
| 10358 | 10358 | }; |
| 10359 | 10359 | pub const getentropy = switch (native_os) { |
lib/std/posix.zig+1-1| ... | ... | @@ -672,7 +672,7 @@ fn getRandomBytesDevURandom(buf: []u8) !void { |
| 672 | 672 | |
| 673 | 673 | const file: fs.File = .{ .handle = fd }; |
| 674 | 674 | var file_reader = file.readerStreaming(&.{}); |
| 675 | file_reader.readSliceAll(buf) catch return error.Unexpected; | |
| 675 | file_reader.interface.readSliceAll(buf) catch return error.Unexpected; | |
| 676 | 676 | } |
| 677 | 677 | |
| 678 | 678 | /// Causes abnormal process termination. |