From 894cc5e40a0c0053aae02b88db982a5063fa74d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Kry=C5=84ski?= Date: Thu, 22 Oct 2020 00:55:35 +0200 Subject: [PATCH] fix getrandom (#712) --- crates/bevy_utils/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/bevy_utils/Cargo.toml b/crates/bevy_utils/Cargo.toml index 494db5fe87..d4b986bf56 100644 --- a/crates/bevy_utils/Cargo.toml +++ b/crates/bevy_utils/Cargo.toml @@ -14,3 +14,6 @@ keywords = ["bevy"] [dependencies] ahash = "0.5.3" + +[target.'cfg(target_arch = "wasm32")'.dependencies] +getrandom = {version = "0.2.0", features = ["js"]}