diff --git a/Cargo.toml b/Cargo.toml index 4fb260b..42faefa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ std_rand = ["rand/std_rng", "rand/std"] js = ["getrandom/js"] [target.'cfg(target_arch = "wasm32")'.dependencies] -getrandom = { version = "0.2", optional = true } +getrandom = { version = "*", features = ["js"] } [target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dev-dependencies] wasm-bindgen-test = "0.3"