Diff

net/dns.lua @ 6646:9795b8cf14f1

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Sun, 03 May 2015 18:38:39 +0200
parent 6632:855085439f7f
parent 6645:4f934cf03bc9
child 6753:33426c56f5d5
line wrap: on
line diff
--- a/net/dns.lua	Sat May 02 14:52:51 2015 +0200
+++ b/net/dns.lua	Sun May 03 18:38:39 2015 +0200
@@ -226,7 +226,7 @@
 
 
 function dns.random(...)    -- - - - - - - - - - - - - - - - - - -  dns.random
-	math.randomseed(math.floor(10000*socket.gettime()) % 0x100000000);
+	math.randomseed(math.floor(10000*socket.gettime()) % 0x80000000);
 	dns.random = math.random;
 	return dns.random(...);
 end