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 NetBSD ≥ 10.0 #331

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

tklauser
Copy link
Contributor

NetBSD supports the getrandom system call since version 10.0 [1]. Use it if available, otherwise fall back to kern.arandom like on FreeBSD.

[1] https://man.netbsd.org/getrandom.2

src/lib.rs Outdated Show resolved Hide resolved
NetBSD supports the getrandom system call since version 10.0 [1].
Use it if available, otherwise fall back to kern.arandom like on
FreeBSD.

[1] https://man.netbsd.org/getrandom.2
@newpavlov newpavlov merged commit 6e3bbde into rust-random:master Jan 25, 2023
@tklauser tklauser deleted the netbsd-getrandom branch January 25, 2023 17:20
josephlr added a commit that referenced this pull request Jan 26, 2023
Followup to #331, we don't need the condidtional compilation anymore,
because this file is only used if
`any(target_os = "freebsd", target_os = "netbsd")` anyway.

Also cleans up `use` statements and type declarations to look like those
in macos.rs

Signed-off-by: Joe Richey <joerichey@google.com>
josephlr added a commit that referenced this pull request Jan 26, 2023
Followup to #331, we don't need the condidtional compilation anymore,
because this file is only used if
`any(target_os = "freebsd", target_os = "netbsd")` anyway.

Also cleans up `use` statements and type declarations to look like those
in macos.rs

Signed-off-by: Joe Richey <joerichey@google.com>
@newpavlov newpavlov mentioned this pull request Apr 2, 2023
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.

3 participants