1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-14 03:39:49 +00:00

commit new random init

This commit is contained in:
skywind3000
2018-04-02 22:42:13 +08:00
parent 00fac6a40b
commit 3f83ca7d89

4
z.lua
View File

@@ -443,10 +443,8 @@ function math.random_init()
end
if fp ~= nil then
local data = fp:read(32)
seed = seed .. '/' .. data
fp:close()
for i = 1, data:len() do
seed = seed .. tostring(string.byte(data:sub(i, i)))
end
end
end
local number = 0