Improved seed for cointoss

This commit is contained in:
Timo Smit 2019-02-04 13:04:17 +01:00
parent d8ef69a6da
commit 4f5d0befca

View file

@ -22,7 +22,7 @@ local commands = wolfa_requireModule("commands.commands")
local players = wolfa_requireModule("players.players")
function commandCoinToss(clientId, command)
math.randomseed(os.time())
math.randomseed(et.trap_Milliseconds())
local number = math.random(0, 99)
local result