X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=net%2Fdns.lua;h=c9c51fe8afd470e5f95cf745669e53f839fea5da;hb=cb589397c575ebef8ccd68da699c409560339314;hp=a134ecebc938972a4de8b02074d763eb6f761565;hpb=13e26026137097feed823b3782037a1d57e3ddd7;p=prosody.git diff --git a/net/dns.lua b/net/dns.lua index a134eceb..c9c51fe8 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -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