Fix RandomNext behaviour (#2212)

This commit is contained in:
Vitaliya
2021-02-27 15:49:29 +03:00
committed by GitHub
parent 45b1454fde
commit c34812e4bc

View File

@@ -208,7 +208,7 @@ namespace ArchiSteamFarm {
case < 0:
throw new ArgumentOutOfRangeException(nameof(maxValue));
case <= 1:
return maxValue;
return 0;
default:
lock (Random) {
return Random.Next(maxValue);