提交 a3e5b357 编写于 作者: A Alex Crichton

rollup merge of #23942: vhbit/ios-rand

......@@ -185,9 +185,9 @@ fn fill_bytes(&mut self, v: &mut [u8]) {
mod imp {
use prelude::v1::*;
use io;
use old_io::IoResult;
use mem;
use os;
use rand::Rng;
use libc::{c_int, size_t};
......@@ -241,7 +241,7 @@ fn fill_bytes(&mut self, v: &mut [u8]) {
SecRandomCopyBytes(kSecRandomDefault, v.len() as size_t, v.as_mut_ptr())
};
if ret == -1 {
panic!("couldn't generate random bytes: {}", os::last_os_error());
panic!("couldn't generate random bytes: {}", io::Error::last_os_error());
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册