Skip to content

Commit 6f06ac8

Browse files
committed
Fix math.random bug
1 parent 262bf94 commit 6f06ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prometheus.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ end) then
2929
a, b = b, a;
3030
end
3131
local diff = b - a;
32-
assert(diff > 0);
32+
assert(diff >= 0);
3333
if diff > 2 ^ 31 - 1 then
3434
return math.floor(oldMathRandom() * diff + a);
3535
else

0 commit comments

Comments
 (0)