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

Add support for getrandom syscall on DragonFly BSD #210

Merged
merged 1 commit into from
Apr 4, 2021

Conversation

tklauser
Copy link
Contributor

DragonFly BSD supports the getrandom system call since version 5.7 [1].
Use it if available, otherwise fall back to /dev/random.

[1] https://leaf.dragonflybsd.org/cgi/web-man?command=getrandom

DragonFly BSD supports the getrandom system call since version 5.7 [1].
Use it if available, otherwise fall back to /dev/random.

[1] https://leaf.dragonflybsd.org/cgi/web-man?command=getrandom

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser
Copy link
Contributor Author

Friendly ping @josephlr @newpavlov

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.

Looks good to me! Can I assume that you have verified that this code indeed works on pre and post 5.7 DragonFly BSDs without issues?

I will leave this PR open for several days to give @josephlr time to check this PR as well.

@tklauser
Copy link
Contributor Author

Looks good to me! Can I assume that you have verified that this code indeed works on pre and post 5.7 DragonFly BSDs without issues?

Thanks for the review. Yes, I successfully verified this on DragonFly BSD 5.2 and 5.8 but forgot to mention this in the PR description. Sorry about that.

@newpavlov newpavlov merged commit 36d085a into rust-random:master Apr 4, 2021
@tklauser tklauser deleted the getrandom-dragonfly branch April 4, 2021 11:13
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.

2 participants