authorgravatar for euantorano@users.noreply.github.comEuan T <euantorano@users.noreply.github.com> 2019-08-03 07:50:30+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2019-08-03 07:50:30+01:00
log8e157ccb23885b2a9a8a5d66c3955fc560fd0074
tree69c91487da709f6945f5ef0109637546f352bf91
parent24fbd1f1d58125f34ca2ae52a592028f39412aa9
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Update returned error return when not a character device.

Co-Authored-By: Andrew Kelley <andrew@ziglang.org>

1 files changed, 1 insertions(+), 1 deletions(-)

std/os.zig+1-1
......@@ -135,7 +135,7 @@ fn getRandomBytesDevURandom(buf: []u8) !void {
135135
136136 const st = try fstat(fd);
137137 if (!system.S_ISCHR(st.mode)) {
138 return error.Unexpected;
138 return error.NoDevice;
139139 }
140140
141141 const stream = &std.fs.File.openHandle(fd).inStream().stream;