Skip to content

Commit

Permalink
rollup merge of rust-lang#23942: vhbit/ios-rand
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Apr 1, 2015
2 parents fd182f4 + 28d7693 commit a3e5b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/rand/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ mod imp {
mod imp {
use prelude::v1::*;

use io;
use old_io::IoResult;
use mem;
use os;
use rand::Rng;
use libc::{c_int, size_t};

Expand Down Expand Up @@ -241,7 +241,7 @@ mod imp {
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());
}
}
}
Expand Down

0 comments on commit a3e5b35

Please sign in to comment.