mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
fixed int issue with lua 5.5
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user