• 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 63: Line 63:  
local rand = math.random()
 
local rand = math.random()
 
local rtnHash = (math.floor(time*265314426625821*rand)-randomizer*time) % 2^32+math.floor(math.random()*1381242451)*randomizer
 
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 step1 = math.floor(time*265314426625821*rand)
 +
local step2 = randomizer*time
 +
local step3 = step1-step2
 +
local step4 = step3 % 2^32
 +
local step5 = math.floor(math.random()*1381242451)
 +
local step6 = step5*randomizer
 +
local step7 = step4 + step6
 +
local rtnStr = tostring(step1) .. " | " .. tostring(step2) .. " | " .. tostring(step3) .. " | " .. tostring(step4) .. " | " .. tostring(step5) .. " | " .. tostring(step6).. " | " .. tostring(step7) .. " | " .. 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