Skip to content

Commit 98bbe44

Browse files
committed
What was I thinking bro... Fixed for real this time.
1 parent a924b5f commit 98bbe44

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/prometheus/steps/ConstantArray.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,7 @@ repeat
100100
local a, b = math.random(1, #charset), math.random(1, #charset);
101101
prefix_0 = charset:sub(a, a);
102102
prefix_1 = charset:sub(b, b);
103-
until prefix_0 ~= prefix_1 and math.random() < 0.5;
104-
local charset = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@£$%^&*()_+-=[]{}|\\:;\"'<>,./?";
105-
repeat
106-
local a, b = math.random(1, #charset), math.random(1, #charset);
107-
prefix_0 = charset:sub(a, a);
108-
prefix_1 = charset:sub(b, b);
109-
until prefix_0 ~= prefix_1 and math.random() < 0.5;
103+
until prefix_0 ~= prefix_1 and math.random() > 0.5;
110104

111105
local function callNameGenerator(generatorFunction, ...)
112106
if(type(generatorFunction) == "table") then

0 commit comments

Comments
 (0)