From f29160674c0503b75a3f97543c286ff663582a42 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 1 Oct 2024 14:34:47 -0700 Subject: [PATCH] Fuchsia's getrandom uses OS's CSPRNG The `getrandom::getrandom` on Fuchsia uses `zx_cprng_draw` to get cryptographically secure random data, which can be seen [here](https://github.com/rust-random/getrandom/blob/master/src/fuchsia.rs). --- src/rand.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rand.rs b/src/rand.rs index 71ba60288b..8a67117bcb 100644 --- a/src/rand.rs +++ b/src/rand.rs @@ -128,6 +128,7 @@ impl crate::sealed::Sealed for SystemRandom {} target_os = "android", target_os = "dragonfly", target_os = "freebsd", + target_os = "fuchsia", target_os = "haiku", target_os = "hermit", target_os = "hurd",