• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 62: Line 62:  
local time = os.time()
 
local time = os.time()
 
local rand = math.random()
 
local rand = math.random()
local rtnStr = tostring(time) .. " | " .. tostring(rand) .. " | " .. tostring(p.dictConcat(seed)) .. " | " .. tostring(randomizer)
+
local rtnHash = (math.floor(time*265314426625821*rand)-randomizer) % 2^32+math.floor(math.random()*1381242451)
 +
local rtnStr = tostring(time) .. " | " .. tostring(rand) .. " | " .. tostring(p.dictConcat(seed)) .. " | " .. tostring(randomizer) .. " | " .. tostring(rtnHash)
 
return rtnStr
 
return rtnStr
 
-- return (math.floor(time*265314426625821*rand)-randomizer) % 2^32+math.floor(math.random()*1381242451)
 
-- return (math.floor(time*265314426625821*rand)-randomizer) % 2^32+math.floor(math.random()*1381242451)
2,922

edits

Navigation menu