mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.posix: Fix getRandomBytesDevURandom()
This is not exercised in CI because most platforms have a dedicated implementation in getrandom().
This commit is contained in:
parent
d51d18c986
commit
deb46e1dd3
1 changed files with 1 additions and 1 deletions
|
|
@ -672,7 +672,7 @@ fn getRandomBytesDevURandom(buf: []u8) !void {
|
|||
|
||||
const file: fs.File = .{ .handle = fd };
|
||||
var file_reader = file.readerStreaming(&.{});
|
||||
file_reader.readSliceAll(buf) catch return error.Unexpected;
|
||||
file_reader.interface.readSliceAll(buf) catch return error.Unexpected;
|
||||
}
|
||||
|
||||
/// Causes abnormal process termination.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue