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

Use libc::getrandom on DragonflyBSD #411

Merged
merged 1 commit into from
May 1, 2024

Conversation

josephlr
Copy link
Member

Fixes #402

This also moves the "only use libc::getrandom" implementaiton to its own file, allowing multiple OSes to use it, simplifying the implementation.

Bumps libc to include rust-lang/libc@e79e95f

Also moves Dragonfly to using __errno_location, as that binding was added here: DragonFlyBSD/DragonFlyBSD@60d3113 which predates the introduction of getrandom support.

@josephlr josephlr requested a review from newpavlov April 30, 2024 04:38
This also moves the "only use libc::getrandom" implementaiton to its
own file, allowing multiple OSes to use it, simplifying the
implementation.

Bumps libc to include rust-lang/libc@e79e95f

Also moves Dragonfly to using `__errno_location`, as that binding was
added here: DragonFlyBSD/DragonFlyBSD@60d3113
which predates the introduction of `getrandom` support.

Signed-off-by: Joe Richey <[email protected]>
@newpavlov newpavlov merged commit d4b0ef0 into rust-random:master May 1, 2024
51 checks passed
@josephlr josephlr deleted the dragonfly branch May 1, 2024 08:53
@newpavlov newpavlov mentioned this pull request May 5, 2024
@newpavlov newpavlov mentioned this pull request May 17, 2024
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 file-based RNG fallback on DragonflyBSD
2 participants