about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMichael McConville <mmcco@mykolab.com>2015-12-17 00:17:31 -0500
committerMichael McConville <mmcco@mykolab.com>2015-12-18 19:26:10 -0500
commita51b70b8169df7d2199b100fae1c1da8f8d299e3 (patch)
tree2d3b3868db52318ad83d96cb3a4c3097c06037d0 /src/libstd
parentf4d409d6ed8265a269dda2b9f861a83b941959d7 (diff)
downloadrust-a51b70b8169df7d2199b100fae1c1da8f8d299e3.tar.gz
rust-a51b70b8169df7d2199b100fae1c1da8f8d299e3.zip
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.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rand/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs
index 942e81905d3..a1c1244d397 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());
                 }
             }
         }