feat(utils): sync rnd-name with rndname.lua

This commit is contained in:
Nicolas Goudry 2024-06-15 01:25:53 +02:00
parent 79ca3b01a1
commit 39bfc42f58
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44

View file

@ -111,6 +111,7 @@
"zealous",
"zen",
}
local right = {
"agnesi",
"albattani",
@ -350,7 +351,15 @@
"zhukovsky",
}
return left[math.random(0, #left)].. "_" .. right[math.random(0, #right)]
local li = math.random(#left)
local ri = math.random(#right)
local name = left[li] .. "_" .. right[ri]
if name == "boring_wozniak" then -- Steve Wozniak is not boring
return rndname.generate()
end
return left[li] .. "_" .. right[ri]
end
'';
}