File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ pub fn hashmap_random_keys() -> (u64, u64) {
13
13
14
14
#[ cfg( all( unix,
15
15
not( target_os = "ios" ) ,
16
+ not( all( target_os = "macos" , miri) ) ,
16
17
not( target_os = "openbsd" ) ,
17
18
not( target_os = "freebsd" ) ,
18
19
not( target_os = "fuchsia" ) ) ) ]
@@ -106,7 +107,9 @@ mod imp {
106
107
// once per thread in `hashmap_random_keys`. Therefore `SecRandomCopyBytes` is
107
108
// only used on iOS where direct access to `/dev/urandom` is blocked by the
108
109
// sandbox.
109
- #[ cfg( target_os = "ios" ) ]
110
+ // HACK: However, we do use this when running in Miri on macOS; intercepting this is much
111
+ // easier than intercepting accesses to /dev/urandom.
112
+ #[ cfg( any( target_os = "ios" , all( target_os = "macos" , miri) ) ) ]
110
113
mod imp {
111
114
use crate :: io;
112
115
use crate :: ptr;
You can’t perform that action at this time.
0 commit comments