From 5e8dec06b9fc963163670f1001f5435430a2a1e9 Mon Sep 17 00:00:00 2001 From: kb Date: Wed, 31 Mar 2021 08:44:26 +1000 Subject: [PATCH] Fix incorrect rand_int output --- src/wyrand.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wyrand.cr b/src/wyrand.cr index a662a72..0fd1134 100644 --- a/src/wyrand.cr +++ b/src/wyrand.cr @@ -51,7 +51,7 @@ struct Wyrand r &*= b p = pointerof(r).as {{type}}* - (p + {{128 // size - 1}}).value + (p + {{128 // size // 2}}).value end {% end %} end -- 2.45.2