We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262bf94 commit 6f06ac8Copy full SHA for 6f06ac8
src/prometheus.lua
@@ -29,7 +29,7 @@ end) then
29
a, b = b, a;
30
end
31
local diff = b - a;
32
- assert(diff > 0);
+ assert(diff >= 0);
33
if diff > 2 ^ 31 - 1 then
34
return math.floor(oldMathRandom() * diff + a);
35
else
0 commit comments