-
Notifications
You must be signed in to change notification settings - Fork 221
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
RngCore
trait is implemented
#1122
Conversation
4e87fc0
to
f41b871
Compare
(Sorry, attached the wrong issue by mistake) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you! I can see a warning:
warning: unused import: `Error`
--> /home/runner/work/esp-hal/esp-hal/esp-hal-common/src/rng.rs:68:17
|
68 | use rand_core::{Error, RngCore};
| ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Again, we have a bunch of others as well but it would be nice to try to avoid introducing new ones :D
Changelog entry Get rid of warning
f41b871
to
a51cf9a
Compare
@JurajSadel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* WIP made randomness ensuring function implemented RngCore trait (final version i guess) * Revert part of changes and leave TODO comment Changelog entry Get rid of warning
While working on this task it turned out that we do not provide true randomness of generated numbers yet (our generator is not TRNG yet), which does not allow us to implement
CryptoRng
marker trait for our structure yet. The #1120 was created due to that.For now I left the
TODO
instead of implementing CryptoRng. When #1120 will be closed, we'll replace TODO with implementation of a marker trait.Also not sure if this PR should close the initial #942, to be discussed.