-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Horizon (Nintendo 3DS) getrandom function and fixes #2714
Horizon (Nintendo 3DS) getrandom function and fixes #2714
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) soon. Please see the contribution instructions for more information. |
☔ The latest upstream changes (presumably #2708) made this pull request unmergeable. Please resolve the merge conflicts. |
…m-and-fixes # Conflicts: # src/unix/mod.rs # src/unix/newlib/horizon/mod.rs
@bors r+ |
📌 Commit f25ae98 has been approved by |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13 |
This PR adds
getrandom
, conforming to the Linux spec, to thehorizon
OS (Nintendo 3DS).The 3DS doesn't have a full libc implementation, and its randomness API is pretty complicated: rust-random/getrandom#248. For this reason (see the linked PR for more details), the randomness implementation is abstracted by using the Linux
getrandom
interface.This PR also fixes some types on the horizon platform. See the commits and diff.
cc: @ian-h-chamberlain @Meziu