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

Horizon (Nintendo 3DS) getrandom function and fixes #2714

Merged
merged 7 commits into from
Mar 14, 2022

Conversation

AzureMarker
Copy link
Member

This PR adds getrandom, conforming to the Linux spec, to the horizon 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

@rust-highfive
Copy link

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.

src/unix/newlib/mod.rs Outdated Show resolved Hide resolved
@bors
Copy link
Contributor

bors commented Mar 12, 2022

☔ The latest upstream changes (presumably #2708) made this pull request unmergeable. Please resolve the merge conflicts.

@Amanieu
Copy link
Member

Amanieu commented Mar 14, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Mar 14, 2022

📌 Commit f25ae98 has been approved by Amanieu

@bors
Copy link
Contributor

bors commented Mar 14, 2022

⌛ Testing commit f25ae98 with merge 1a31128...

@bors
Copy link
Contributor

bors commented Mar 14, 2022

☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: Amanieu
Pushing 1a31128 to master...

@bors bors merged commit 1a31128 into rust-lang:master Mar 14, 2022
@AzureMarker AzureMarker deleted the horizon-getrandom-and-fixes branch March 15, 2022 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants