diff --git a/Cargo.lock b/Cargo.lock index 4a47870de..37c037b23 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3641,7 +3641,7 @@ dependencies = [ "futures-core", "futures-executor", "futures-util", - "getrandom 0.2.17", + "getrandom 0.3.4", "getrandom 0.4.2", "gloo-timers", "imbl", diff --git a/crates/matrix-sdk-common/Cargo.toml b/crates/matrix-sdk-common/Cargo.toml index 378a3edb6..34f3e5ebc 100644 --- a/crates/matrix-sdk-common/Cargo.toml +++ b/crates/matrix-sdk-common/Cargo.toml @@ -53,6 +53,7 @@ tracing-subscriber = { workspace = true, features = ["fmt", "ansi"] } wasm-bindgen.workspace = true wasm-bindgen-futures = { version = "0.4.33", optional = true } web-sys = { workspace = true, features = ["console"] } +getrandom03 = { package = "getrandom", version = "0.3.4", default-features = false, features = ["wasm_js"] } [dev-dependencies] assert_matches.workspace = true @@ -66,7 +67,6 @@ wasm-bindgen-test.workspace = true [target.'cfg(target_family = "wasm")'.dev-dependencies] # Enable the JS feature for getrandom. getrandom = { workspace = true, default-features = false, features = ["wasm_js"] } -getrandom02 = { package = "getrandom", version = "0.2.17", default-features = false, features = ["js"] } js-sys.workspace = true [lints]