Skip to content

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
@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