Skip to content

Commit

Permalink
Use the correct syscall name in panic message
Browse files Browse the repository at this point in the history
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
1 parent f4d409d commit a51b70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/rand/os.rs
Expand Up @@ -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());
}
}
}
Expand Down

0 comments on commit a51b70b

Please sign in to comment.