Skip to content

Commit

Permalink
iOS: fallout of Sync oibit
Browse files Browse the repository at this point in the history
  • Loading branch information
vhbit committed Dec 30, 2014
1 parent d2368c3 commit c3ff803
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libstd/rand/os.rs
Expand Up @@ -170,6 +170,7 @@ mod imp {
extern crate libc;

use io::{IoResult};
use kinds::Sync;
use mem;
use os;
use rand::Rng;
Expand All @@ -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;

Expand Down

0 comments on commit c3ff803

Please sign in to comment.