Skip to content

Commit ecf48fb

Browse files
committed
rollup merge of rust-lang#20329: vhbit/ios-rand-fix
2 parents a8820f7 + c3ff803 commit ecf48fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libstd/rand/os.rs

+3
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ mod imp {
170170
extern crate libc;
171171

172172
use io::{IoResult};
173+
use kinds::Sync;
173174
use mem;
174175
use os;
175176
use rand::Rng;
@@ -196,6 +197,8 @@ mod imp {
196197
#[repr(C)]
197198
struct SecRandom;
198199

200+
unsafe impl Sync for *const SecRandom {}
201+
199202
#[allow(non_upper_case_globals)]
200203
static kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
201204

0 commit comments

Comments
 (0)