Skip to content

Replace randomness source #352

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

Closed
wants to merge 2 commits into from

Conversation

elichai
Copy link
Contributor

@elichai elichai commented Jul 19, 2019

Right now we use the JitterRng as a source of randomness(https://docs.rs/rand/0.4.6/rand/jitter/index.html)
This rely on a System clock.
This PR move to use the OS randomness source. and bump the rand version to 0.7.

This enables systems without a clock to use the library after #351 will remove all other clock uses.

wasm32-unknown-unknown example that successfully runs rust-lightning on the browser: https://github.com/elichai/rust-lightning/tree/wasm/wasm-test

This still requires upgrading rust-secp256k1 here and in rust-bitcoin, and removing the rest of clocks (master...elichai:wasm)

cc rust-bitcoin/rust-bitcoin#278

@TheBlueMatt
Copy link
Collaborator

#353 merged.

@elichai elichai deleted the 2019-07-osrand branch July 23, 2019 19:10
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.

2 participants