rollup merge of #20329: vhbit/ios-rand-fix
This commit is contained in:
commit
ecf48fb469
1 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,7 @@ mod imp {
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
||||||
use io::{IoResult};
|
use io::{IoResult};
|
||||||
|
use kinds::Sync;
|
||||||
use mem;
|
use mem;
|
||||||
use os;
|
use os;
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
|
@ -196,6 +197,8 @@ mod imp {
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
struct SecRandom;
|
struct SecRandom;
|
||||||
|
|
||||||
|
unsafe impl Sync for *const SecRandom {}
|
||||||
|
|
||||||
#[allow(non_upper_case_globals)]
|
#[allow(non_upper_case_globals)]
|
||||||
static kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
|
static kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue