Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libstd/rand/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ mod imp {

use old_io::IoResult;
use mem;
use os;
use io;
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