diff --git a/Cargo.lock b/Cargo.lock index 10a4d13749..fdc4370404 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -906,6 +906,7 @@ dependencies = [ "clap", "criterion", "generic-array", + "getrandom", "hashbrown 0.15.2", "hex", "iai-callgrind", @@ -1539,8 +1540,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", + "js-sys", "libc", "wasi", + "wasm-bindgen", ] [[package]] diff --git a/vm/Cargo.toml b/vm/Cargo.toml index a900717c35..f5b35e3bdd 100644 --- a/vm/Cargo.toml +++ b/vm/Cargo.toml @@ -90,6 +90,8 @@ num-prime = { version = "0.4.3", features = ["big-int"] } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] wasm-bindgen-test = "0.3.34" +# The js feature needs to be enabled +getrandom = { version = "*", features = ["js"]} [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] iai-callgrind = "0.3.1"