Skip to content

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

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 <[email protected]>
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 <[email protected]>
@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