mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
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.
This commit is contained in:
parent
f4d409d6ed
commit
a51b70b816
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ fn fill_bytes(&mut self, v: &mut [u8]) {
|
|||
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue