rust-random / getrandom

A small cross-platform library for retrieving random data from (operating) system source
Apache License 2.0
264 stars 166 forks source link

Remove file-based RNG fallback on DragonflyBSD #402

Closed josephlr closed 2 months ago

josephlr commented 3 months ago

In https://github.com/rust-lang/rust/pull/121942 (also see https://github.com/rust-lang/rust/pull/122356), libstd moved to just unconditionally calling libc::getrandom on Dragonfly BSD. This breaks Dragonfly BSD releases before 5.7, but this was judged to be acceptable (based on what targets Rust wants to support).

@newpavlov would it make sense for us to do the same thing?

Blocked by: https://github.com/rust-lang/libc/pull/3618

newpavlov commented 3 months ago

Yes, I think we can follow std here as per our platform support policy.