From 8d8b0dc243837482ce65074db33564a32f7139d7 Mon Sep 17 00:00:00 2001 From: rhy <81539300+rhynomatt@users.noreply.github.com> Date: Mon, 9 Jan 2023 16:02:30 -0300 Subject: [PATCH] uuid: Fix ulid length --- uuid.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uuid.lua b/uuid.lua index 065a229..4aae349 100644 --- a/uuid.lua +++ b/uuid.lua @@ -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