From b39e295eb4f99a5eb9c4e507b5ff6fcaba682473 Mon Sep 17 00:00:00 2001 From: rhy <81539300+rhynomatt@users.noreply.github.com> Date: Mon, 9 Jan 2023 14:02:00 -0300 Subject: [PATCH] uuid: Add a time arg to ulid --- uuid.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uuid.lua b/uuid.lua index 9deeea0..065a229 100644 --- a/uuid.lua +++ b/uuid.lua @@ -74,8 +74,8 @@ end --generate an ULID using this rng at this time --see https://github.com/ulid/spec --implementation based on https://github.com/Tieske/ulid.lua -function uuid.ulid(rng, time_func) - return _encode_time() .. _encode_random() +function uuid.ulid(rng, time) + return _encode_time(time) .. _encode_random(rng) end return uuid