Add Wasm support (#125)

* Add Wasm support

* Use SeedableRng for Wasm randomness

* Fix tests

* Formatting
This commit is contained in:
Samuel Burnham
2023-01-30 14:31:36 -05:00
committed by GitHub
parent 6c6a8746d6
commit 55f6736866
2 changed files with 6 additions and 7 deletions

View File

@@ -14,8 +14,7 @@ use pasta_curves::{
group::{Curve, Group as AnotherGroup, GroupEncoding},
pallas, vesta, Ep, Eq,
};
use rand::SeedableRng;
use rand_chacha::ChaCha20Rng;
use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng};
use sha3::Shake256;
use std::io::Read;