-
Notifications
You must be signed in to change notification settings - Fork 239
Add SysRng behind new feature sys_rng
#751
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
Conversation
|
@newpavlov your opinion on this please? There is an alternative: the |
|
As I wrote previously, personally, I have a slight preference for a separate crate. But I would be fine with this PR as well, if others prefer it. P.S.: Note that |
josephlr
left a comment
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.
As I wrote previously, personally, I have a slight preference for a separate crate. But I would be fine with this PR as well, if others prefer it.
I think I would slightly lean towards having this as part of getrandom. A non-default additive feature seems like a good fit. I think the only complexity is figuring out what (if anything) this crate should re-export from rand_core.
654872c to
5b2ab43
Compare
|
Thanks for moving this forward @josephlr. I think I addressed your concerns (except as commented). |
5b2ab43 to
1e873b4
Compare
|
@newpavlov I addressed your concerns |
|
@josephlr @dhardy |
SysRng type implementing rand_core traits
|
@newpavlov see |
|
I added |
|
What about changelog? It could worth to add
Personally, I don't see a problem with the provided rendering. |
|
Added CHANGELOG entry and test case. |
SysRng type implementing rand_core traitsSysRng and UnwrappedSysRng behind new feature sys_rng
SysRng and UnwrappedSysRng behind new feature sys_rngSysRng behind new feature sys_rng
josephlr
left a comment
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 (sorry for the delay on review), will respond about UnwrappedSysRng in #754
This was mentioned elsewhere: rust-random/rand#1675
Adds
rand_coreas a dependency, which is one small crate.This attempts to enable testing of
rngin all CI tests.