aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorbrian cully <bjc@spork.org>2025-12-28 17:06:32 -0500
committerbrian cully <bjc@spork.org>2025-12-28 17:06:32 -0500
commitd485b9e2cd5429a91a57ff443a30a25522b7f7f0 (patch)
treef1c3515478a4098a6f41fc0eda5071ac619ec5c9 /Cargo.toml
parentdf43e984dff819e9743992cb7b047d9d17506384 (diff)
downloadpolyring-d485b9e2cd5429a91a57ff443a30a25522b7f7f0.tar.gz
polyring-d485b9e2cd5429a91a57ff443a30a25522b7f7f0.zip
let fastrand know we're in wasm
now seeds are random!
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml5
1 files changed, 4 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 84380f9..1d6d1f4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,7 +12,10 @@ crate-type = ["cdylib", "rlib"]
console_log = "1.0"
log = "0.4"
wasm-bindgen = "0.2"
-fastrand = "2.3"
+
+[dependencies.fastrand]
+features = ["js"]
+version = "2.3"
[dependencies.web-sys]
features = ["Document", "DocumentTimeline", "Element", "HtmlElement", "HtmlCanvasElement", "CanvasRenderingContext2d", "Node", "Window"]