equal
deleted
inserted
replaced
221 |
221 |
222 -- packet layer -------------------------------------------------- packet layer |
222 -- packet layer -------------------------------------------------- packet layer |
223 |
223 |
224 |
224 |
225 function dns.random(...) -- - - - - - - - - - - - - - - - - - - dns.random |
225 function dns.random(...) -- - - - - - - - - - - - - - - - - - - dns.random |
226 math.randomseed(math.floor(10000*socket.gettime())); |
226 math.randomseed(math.floor(10000*socket.gettime()) % 0x100000000); |
227 dns.random = math.random; |
227 dns.random = math.random; |
228 return dns.random(...); |
228 return dns.random(...); |
229 end |
229 end |
230 |
230 |
231 |
231 |