Skip to content

Use the getentropy(2) syscall on OpenBSD #30430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 20, 2015
Prev Previous commit
Next Next commit
Use the correct syscall name in panic message
I copied it from the getrandom code but forgot to change the name.
Reported by Sebastien Marie.
  • Loading branch information
mmcco committed Dec 19, 2015
commit a51b70b8169df7d2199b100fae1c1da8f8d299e3
2 changes: 1 addition & 1 deletion src/libstd/rand/os.rs
Original file line number Diff line number Diff line change
@@ -233,7 +233,7 @@ mod imp {
for s in v.chunks_mut(256) {
unsafe { ret = syscall(7, s.as_mut_ptr(), s.len()); }
if ret == -1 {
panic!("unexpected getrandom error: {}", errno());
panic!("unexpected getentropy error: {}", errno());
}
}
}