rollup merge of #20329: vhbit/ios-rand-fix

This commit is contained in:
Alex Crichton 2014-12-30 16:26:16 -08:00
commit ecf48fb469
1 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,7 @@ mod imp {
extern crate libc;
use io::{IoResult};
use kinds::Sync;
use mem;
use os;
use rand::Rng;
@ -196,6 +197,8 @@ mod imp {
#[repr(C)]
struct SecRandom;
unsafe impl Sync for *const SecRandom {}
#[allow(non_upper_case_globals)]
static kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;