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

rand_os backward compatibility #683

Closed
wants to merge 3 commits into from

Conversation

newpavlov
Copy link
Member

#681 #678

This PR returns the old handling of OsRng, in other words if OS RNG is not supported for given target/features combinations, OsRng is simply left undefined. I personally quite dislike this approach, but it should work as a temporary patch to solve WASM issues.

@dhardy
Copy link
Member

dhardy commented Jan 8, 2019

@newpavlov thanks for the effort, but it's not just you who doesn't like this approach; I believe run-time errors are preferable for WASM. I pushed this into #686 and also included your second two commits (squashed). Your refactor in the first commit was mixed with the behaviour changes so I left it.

@dhardy dhardy closed this Jan 8, 2019
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

2 participants