uuid: Fix ulid length

This commit is contained in:
rhy 2023-01-09 16:02:30 -03:00
parent b39e295eb4
commit 8d8b0dc243

View File

@ -64,7 +64,7 @@ end
local function _encode_random(rng)
local out = {}
for i = 1, 10 do
for i = 1, 16 do
out[i] = _encoding[math.floor(_random(rng) * #_encoding) + 1]
end