From 615f6b9d77df9ff8ca401599f19fa61d272e01f4 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 27 May 2026 11:01:41 +0100 Subject: [PATCH] Fix typo --- core/math/rand/distributions.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/rand/distributions.odin b/core/math/rand/distributions.odin index dea645748..7718bef9a 100644 --- a/core/math/rand/distributions.odin +++ b/core/math/rand/distributions.odin @@ -399,7 +399,7 @@ zipf_uint64 :: proc(z: Zipf) -> u64 { r := float64(z.gen) // [0, 1) ur := r * z.hx0_minus_hxm + z.hxm x := zipf_hinv(z, ur) - k := math.floor(x + 0.5) + k = math.floor(x + 0.5) if k-x <= z.s { break }