iOS: Sync/Send fallout
This commit is contained in:
parent
dccdde4007
commit
01385a237f
1 changed files with 1 additions and 4 deletions
|
@ -188,7 +188,6 @@ mod imp {
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
||||||
use old_io::{IoResult};
|
use old_io::{IoResult};
|
||||||
use marker::Sync;
|
|
||||||
use mem;
|
use mem;
|
||||||
use os;
|
use os;
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
|
@ -214,10 +213,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;
|
const kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
|
||||||
|
|
||||||
#[link(name = "Security", kind = "framework")]
|
#[link(name = "Security", kind = "framework")]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue