Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unconditionally use libc::getrandom on FreeBSD #416

Merged
merged 2 commits into from May 2, 2024

Conversation

josephlr
Copy link
Member

@josephlr josephlr commented May 2, 2024

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.

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.

Signed-off-by: Joe Richey <joerichey@google.com>
@josephlr josephlr requested a review from newpavlov May 2, 2024 07:49
Copy link
Member

@newpavlov newpavlov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename bsd_arandom.rs to netbsd.rs?

Signed-off-by: Joe Richey <joerichey@google.com>
@josephlr
Copy link
Member Author

josephlr commented May 2, 2024

Maybe rename bsd_arandom.rs to netbsd.rs?

Done

@josephlr josephlr merged commit dca4961 into rust-random:master May 2, 2024
51 checks passed
@josephlr josephlr deleted the freebsd branch May 2, 2024 08:08
@newpavlov newpavlov mentioned this pull request May 5, 2024
@briansmith
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove fallback logic for FreeBSD
3 participants