-
Notifications
You must be signed in to change notification settings - Fork 715
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
add an opt-in less-safe-getrandom-custom feature #1754
add an opt-in less-safe-getrandom-custom feature #1754
Conversation
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 for doing this.
This Cargo feature treats a user-provided `getrandom` implementation as a secure random number generator (`SecureRandom`). The feature only has effect on targets not supported by `getrandom`. I agree to license my contributions to each file under the terms given at the top of each file I changed.
and have it apply only when `target_os = "none"`
604caec
to
2756989
Compare
thanks for the review. I have addressed your comments in a new commit. let me know if I should squash the commits. |
is there anything else that should be done in this PR? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1754 +/- ##
==========================================
- Coverage 96.04% 96.04% -0.01%
==========================================
Files 137 137
Lines 20812 20812
Branches 226 226
==========================================
- Hits 19989 19988 -1
Misses 790 790
- Partials 33 34 +1 ☔ View full report in Codecov by Sentry. |
This Cargo feature treats a user-provided
getrandom
implementation as a secure random number generator (SecureRandom
). The feature only has effect on targets not supported bygetrandom
.closes #1734