Skip to content
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

Use getrandom for random_get, disable default rand features #625

Merged
merged 4 commits into from
Nov 25, 2019

Conversation

newpavlov
Copy link
Contributor

@newpavlov newpavlov commented Nov 23, 2019

random_get should draw host OS entropy directly, instead of using user-space PRNG via ThreadRng. Relevant issue: wasmerio/wasmer#909

Additionally rand's default features are disabled for environ crate, since they are not needed.

@newpavlov
Copy link
Contributor Author

The CI failure looks unrelated to changes in this PR.

Copy link
Member

@kubkon kubkon left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Looks good to me! Before merging though, I'd like @sunfishcode to have a look first.

@kubkon
Copy link
Member

kubkon commented Nov 25, 2019

The CI failure looks unrelated to changes in this PR.

Yep, the CI failure is indeed unrelated and fixed in #635.

@sunfishcode
Copy link
Member

Looks good, thanks!

@sunfishcode sunfishcode merged commit 752ed90 into bytecodealliance:master Nov 25, 2019
@newpavlov newpavlov deleted the getrandom branch November 25, 2019 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants