about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-25 03:21:17 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-25 03:21:17 +0530
commit216be122a0ae2e79f7299565bd45cc0d9b415de4 (patch)
treef57d07d898127dbfa9dc804c8fb0c9d945427031 /src
parent1913e79bd9992d07c7d9c165af44934ae853536b (diff)
parent01385a237fb6f4d80fbeb0f469caeb32075e22f9 (diff)
downloadrust-216be122a0ae2e79f7299565bd45cc0d9b415de4.tar.gz
rust-216be122a0ae2e79f7299565bd45cc0d9b415de4.zip
Rollup merge of #22770 - vhbit:ios-rand-send, r=alexcrichton
   "body": null,
Diffstat (limited to 'src')
-rw-r--r--src/libstd/rand/os.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs
index 0e2766f3889..1a13405633d 100644
--- a/src/libstd/rand/os.rs
+++ b/src/libstd/rand/os.rs
@@ -188,7 +188,6 @@ mod imp {
     extern crate libc;
 
     use old_io::{IoResult};
-    use marker::Sync;
     use mem;
     use os;
     use rand::Rng;
@@ -214,10 +213,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;
+    const kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
 
     #[link(name = "Security", kind = "framework")]
     extern "C" {