From 3f83ca7d89036fbd980dbe808e4b5d056c583e9e Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Mon, 2 Apr 2018 22:42:13 +0800 Subject: [PATCH] commit new random init --- z.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/z.lua b/z.lua index ff6f441..c2e19ea 100644 --- a/z.lua +++ b/z.lua @@ -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