Skip to content

Commit

Permalink
Fuchsia's getrandom uses OS's CSPRNG
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
erickt authored and briansmith committed Oct 4, 2024
1 parent 88974ea commit f291606
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f291606

Please sign in to comment.