From df3d5883caa974994f85145642a41088f5f12693 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 7 Jan 2010 01:26:01 +0000 Subject: net.dns: Make sure math.randomseed() gets passed an integer --- net/dns.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/dns.lua') 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 -- cgit v1.2.3