From a51b70b8169df7d2199b100fae1c1da8f8d299e3 Mon Sep 17 00:00:00 2001 From: Michael McConville Date: Thu, 17 Dec 2015 00:17:31 -0500 Subject: [PATCH] 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. --- src/libstd/rand/os.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs index 942e81905d30..a1c1244d3978 100644 --- a/src/libstd/rand/os.rs +++ b/src/libstd/rand/os.rs @@ -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()); } } }