• 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
m
no edit summary
Line 74: Line 74:     
function NanaminFleetKai:generate_id()
 
function NanaminFleetKai:generate_id()
     --No built-in hashing algorithms, so we'll just cheat and use the route, HQ level and a random number
+
     math.randomseed(os.time())
 +
    math.random(); math.random(); math.random()
 
     self._id = self._args["route"]:gsub("[^%w]", "") .. self._args["hq"] .. tostring(math.random(1000000,9999999))
 
     self._id = self._args["route"]:gsub("[^%w]", "") .. self._args["hq"] .. tostring(math.random(1000000,9999999))
 
end
 
end
48

edits

Navigation menu