diff options
| author | Thom Chiovoloni <thom@shift.click> | 2022-10-11 17:22:12 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <thom@shift.click> | 2023-06-21 14:59:37 -0700 |
| commit | bdc3db944cf8da99d80e67e7bb52917512d0a5a7 (patch) | |
| tree | 4bf332994538c0a5854994dbacd2f578e90cc73d /library/std/src/sys/unix/rand.rs | |
| parent | 006a26c0b546abc0fbef59a773639582b641e500 (diff) | |
| download | rust-bdc3db944cf8da99d80e67e7bb52917512d0a5a7.tar.gz rust-bdc3db944cf8da99d80e67e7bb52917512d0a5a7.zip | |
wip: Support Apple tvOS in libstd
Diffstat (limited to 'library/std/src/sys/unix/rand.rs')
| -rw-r--r-- | library/std/src/sys/unix/rand.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/rand.rs b/library/std/src/sys/unix/rand.rs index d8b63546b9e..d471be33ed5 100644 --- a/library/std/src/sys/unix/rand.rs +++ b/library/std/src/sys/unix/rand.rs @@ -14,6 +14,7 @@ pub fn hashmap_random_keys() -> (u64, u64) { unix, not(target_os = "macos"), not(target_os = "ios"), + not(target_os = "tvos"), not(target_os = "watchos"), not(target_os = "openbsd"), not(target_os = "freebsd"), @@ -198,7 +199,7 @@ mod imp { // once per thread in `hashmap_random_keys`. Therefore `SecRandomCopyBytes` is // only used on iOS where direct access to `/dev/urandom` is blocked by the // sandbox. -#[cfg(any(target_os = "ios", target_os = "watchos"))] +#[cfg(any(target_os = "ios", target_os = "tvos", target_os = "watchos"))] mod imp { use crate::io; use crate::ptr; |
