diff options
| author | Michael McConville <mmcco@mykolab.com> | 2015-12-17 00:17:31 -0500 |
|---|---|---|
| committer | Michael McConville <mmcco@mykolab.com> | 2015-12-18 19:26:10 -0500 |
| commit | a51b70b8169df7d2199b100fae1c1da8f8d299e3 (patch) | |
| tree | 2d3b3868db52318ad83d96cb3a4c3097c06037d0 /src/libstd | |
| parent | f4d409d6ed8265a269dda2b9f861a83b941959d7 (diff) | |
| download | rust-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.rs | 2 |
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()); } } } |
