-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Use getrandom crate for retrieving system entropy? #62079
Copy link
Copy link
Open
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Right now
stdandgetrandomessentially duplicate each other. And Rust already depends onrand(viatempfile) which in v0.7 will usegetrandom. So I think it makes sense to use a single implementation, to keep work on correctly retrieving system entropy focused in one place.Note that right now I do not propose to expose
getrandomAPI as part ofstdor introduce a lang item, it's a separate discussion, see rust-random/getrandom#21. Also it's probably will be better to wait until rust-random/getrandom#13 will be closed, which should happen relatively soon.cc @dhardy @tarcieri