mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-22 22:24:35 +00:00
uuid: Fix ulid length
This commit is contained in:
parent
b39e295eb4
commit
8d8b0dc243
2
uuid.lua
2
uuid.lua
@ -64,7 +64,7 @@ end
|
|||||||
local function _encode_random(rng)
|
local function _encode_random(rng)
|
||||||
local out = {}
|
local out = {}
|
||||||
|
|
||||||
for i = 1, 10 do
|
for i = 1, 16 do
|
||||||
out[i] = _encoding[math.floor(_random(rng) * #_encoding) + 1]
|
out[i] = _encoding[math.floor(_random(rng) * #_encoding) + 1]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user