fixed int issue with lua 5.5

This commit is contained in:
2026-05-30 21:21:32 -07:00
parent c86413351c
commit ee5e3bde7f
+2 -2
View File
@@ -2504,7 +2504,7 @@ function table.merge(t1, t2)
return t1 return t1
end end
math.randomseed(os.time()) math.randomseed(math.floor(os.time()))
function multi:enableLoadDetection() function multi:enableLoadDetection()
if multi.maxSpd then return end if multi.maxSpd then return end
@@ -2811,7 +2811,7 @@ local function random_hex(len)
end end
return result return result
end end
math.randomseed(os.time()) math.randomseed(math.floor(os.time()))
multi.generate_uuid7 = function() multi.generate_uuid7 = function()
-- Get timestamp in milliseconds -- Get timestamp in milliseconds
local timestamp_ms = get_timestamp_ms() local timestamp_ms = get_timestamp_ms()