aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-07 01:26:01 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-07 01:26:01 +0000
commitdf3d5883caa974994f85145642a41088f5f12693 (patch)
tree481dcf22ea3dc7b77719c9d0305942f18963ebc0 /net
parent92b2d54b4b515f72bdeff377bac640dd0ac3cae3 (diff)
downloadprosody-df3d5883caa974994f85145642a41088f5f12693.tar.gz
prosody-df3d5883caa974994f85145642a41088f5f12693.zip
net.dns: Make sure math.randomseed() gets passed an integer
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua2
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