From 368570aaab88d3315f3d748055cc75fd4008c2fe Mon Sep 17 00:00:00 2001 From: Dvel Date: Fri, 6 Feb 2026 15:08:16 +0800 Subject: [PATCH] fix: uuid.lua ensure randomseed() works on both Lua 5.3 and 5.4 #1473 --- lua/uuid.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/uuid.lua b/lua/uuid.lua index cf8dc30..94e76e3 100644 --- a/lua/uuid.lua +++ b/lua/uuid.lua @@ -33,7 +33,7 @@ end local M = {} function M.init(env) - randomseed(os.time() + os.clock() * 1000) + randomseed(math.floor(os.time() + os.clock() * 1000)) M.uuid = env.engine.schema.config:get_string(env.name_space:gsub("^*", "")) or "uuid" end