net.server_select: Add and improve some comments.
[prosody.git] / net / dns.lua
index a134ecebc938972a4de8b02074d763eb6f761565..c9c51fe8afd470e5f95cf745669e53f839fea5da 100644 (file)
@@ -223,7 +223,7 @@ end
 
 
 function dns.random(...)    -- - - - - - - - - - - - - - - - - - -  dns.random
-       math.randomseed(math.floor(10000*socket.gettime()));
+       math.randomseed(math.floor(10000*socket.gettime()) % 0x100000000);
        dns.random = math.random;
        return dns.random(...);
 end