• 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 rtnHash = (math.floor(time*265314426625821*rand)-randomizer) % 2^32+math.floor(math.random()*1381242451)
+
local rtnHash = (math.floor(time*265314426625821*rand)-randomizer*time) % 2^32+math.floor(math.random()*1381242451)*randomizer
 
local rtnStr = tostring(time) .. " | " .. tostring(rand) .. " | " .. tostring(p.dictConcat(seed)) .. " | " .. tostring(randomizer) .. " | " .. tostring(rtnHash)
 
local rtnStr = tostring(time) .. " | " .. tostring(rand) .. " | " .. tostring(p.dictConcat(seed)) .. " | " .. tostring(randomizer) .. " | " .. tostring(rtnHash)
 
return rtnStr
 
return rtnStr
2,922

edits

Navigation menu