Skip to content

Rewrite RNG #3829

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

Merged
merged 1 commit into from
Jul 21, 2025
Merged

Rewrite RNG #3829

merged 1 commit into from
Jul 21, 2025

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Jul 18, 2025

This PR decouples the RNG entropy source and the RNG random number generator. It addresses #3826 while at the same time, gives control to the user to manage the TRNG entropy source however they see fit.

The PR throttles reading the RNG data register and ensures that only a single caller may access the data register at a time.

Closes #2443
Closes #3826
Closes #2372

@bugadani bugadani force-pushed the rng branch 6 times, most recently from 23755f0 to 37a944a Compare July 18, 2025 12:39
@bugadani bugadani force-pushed the rng branch 19 times, most recently from 49eb503 to 7e3260c Compare July 21, 2025 11:28
@bugadani bugadani marked this pull request as ready for review July 21, 2025 12:11
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this turned out really nicely, and will end up closing at least three issues! Thank you!

@MabezDev MabezDev added this pull request to the merge queue Jul 21, 2025
Merged via the queue into esp-rs:main with commit 0d9f43d Jul 21, 2025
30 checks passed
@bugadani bugadani deleted the rng branch July 21, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants