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 | 76940508d1f8f2ab65d8b98c16960fa50d512da4 (patch) | |
tree | 8589f91a88823fdb958ef0ee87befbc450fd461a /net | |
parent | 62b1c8d4dce19e31ca2307c83728eac642f7f172 (diff) | |
download | prosody-76940508d1f8f2ab65d8b98c16960fa50d512da4.tar.gz prosody-76940508d1f8f2ab65d8b98c16960fa50d512da4.zip |
net.dns: Make sure math.randomseed() gets passed an integer
Diffstat (limited to 'net')
-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 8f943793..01807d9d 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 |