From 73adbd508dd54a8e4e94659a2e9306ad8a7fa833 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 14 Jan 2025 14:36:46 +0000 Subject: [PATCH] Improved ``GenerateAccountId to not return negative values --- Core/Utils/HashUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Utils/HashUtil.cs b/Core/Utils/HashUtil.cs index bd15a005..292fc431 100644 --- a/Core/Utils/HashUtil.cs +++ b/Core/Utils/HashUtil.cs @@ -106,7 +106,7 @@ public class HashUtil var random = new Random(); - return random.Next() * (max - min + 1) + min; + return random.Next(min, max + 1); } }