From 5a904c43d0b5894f9095767bd6eb9818d0a7214f Mon Sep 17 00:00:00 2001 From: Jens Pitkanen Date: Fri, 13 Mar 2026 20:06:18 +0200 Subject: [PATCH] Fix SmallRng::from_seed causing a compile error for 32-bit targets --- src/stdlib/math.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/math.rs b/src/stdlib/math.rs index 99ae3e65..4ab37997 100644 --- a/src/stdlib/math.rs +++ b/src/stdlib/math.rs @@ -337,7 +337,7 @@ pub fn load_random<'gc>(ctx: Context<'gc>, math: Table<'gc>) { (Some(high), Some(low)) => { let high_bytes = high.to_ne_bytes(); let low_bytes = low.to_ne_bytes(); - let seed: [u8; 32] = core::array::from_fn(|idx| { + let seed: [u8; _] = core::array::from_fn(|idx| { let idx_mod_16 = idx % 16; if idx_mod_16 >= 8 { high_bytes[idx_mod_16 - 8]