From d485b9e2cd5429a91a57ff443a30a25522b7f7f0 Mon Sep 17 00:00:00 2001 From: brian cully Date: Sun, 28 Dec 2025 17:06:32 -0500 Subject: let fastrand know we're in wasm now seeds are random! --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') 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"] -- cgit v1.3