]> git.lizzy.rs Git - rust.git/commitdiff
iOS: fallout of Sync oibit
authorValerii Hiora <valerii.hiora@gmail.com>
Tue, 30 Dec 2014 12:52:47 +0000 (14:52 +0200)
committerValerii Hiora <valerii.hiora@gmail.com>
Tue, 30 Dec 2014 12:57:03 +0000 (14:57 +0200)
src/libstd/rand/os.rs

index 46c3a4f622a5448defd13e981288eede71929b52..91b6a1f0ce0ce8a8e176634c642693e8cafbf1ab 100644 (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 @@ pub struct OsRng {
     #[repr(C)]
     struct SecRandom;
 
+    unsafe impl Sync for *const SecRandom {}
+
     #[allow(non_upper_case_globals)]
     static kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;