From ab2a51b30e4402d73f898b3a0dfe341826f609e3 Mon Sep 17 00:00:00 2001 From: Pedro Chambino Date: Sun, 17 Mar 2024 21:47:19 +0000 Subject: [PATCH] Fix helper.RandInt Math... --- testing/helper/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/helper/helper.go b/testing/helper/helper.go index 66fd63a..f1c591d 100644 --- a/testing/helper/helper.go +++ b/testing/helper/helper.go @@ -95,5 +95,5 @@ func RandBool() bool { } func RandInt(from, to int) int { - return from + rand.Intn(to+1) + return from + rand.Intn((to-from)+1) }