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

Unconditionally use libc::getrandom on FreeBSD #416

Closed josephlr closed 2 months ago

josephlr commented 2 months ago

Fixes #412

Rust's minimum version is now FreeBSD 12, so we can drop the fallback code. We have to keep the NetBSD fallback code as NetBSD 10 is still quite new.

josephlr commented 2 months ago

Maybe rename bsd_arandom.rs to netbsd.rs?

Done

briansmith commented 1 month ago

Rust's minimum version is now FreeBSD 12, so we can drop the fallback code.

The current MSRV does support FreeBSD 11, so this seems premature if the reason is what Rust supports. A better reason is that FreeBSD 11 is EOL.