diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-01-07 01:26:01 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-01-07 01:26:01 +0000 |
commit | df3d5883caa974994f85145642a41088f5f12693 (patch) | |
tree | 481dcf22ea3dc7b77719c9d0305942f18963ebc0 | |
parent | 92b2d54b4b515f72bdeff377bac640dd0ac3cae3 (diff) | |
download | prosody-df3d5883caa974994f85145642a41088f5f12693.tar.gz prosody-df3d5883caa974994f85145642a41088f5f12693.zip |
net.dns: Make sure math.randomseed() gets passed an integer
-rw-r--r-- | net/dns.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua index 888abfbb..ca0ec622 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -183,7 +183,7 @@ end function dns.random(...) -- - - - - - - - - - - - - - - - - - - dns.random - math.randomseed(10000*socket.gettime()); + math.randomseed(math.floor(10000*socket.gettime())); dns.random = math.random; return dns.random(...); end |