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 @@ 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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue