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); } }