Software /
code /
prosody
Comparison
net/dns.lua @ 6665:e923d7cb8430
Merge
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:21:29 +0100 |
parent | 6646:9795b8cf14f1 |
child | 6753:33426c56f5d5 |
comparison
equal
deleted
inserted
replaced
6664:5466f24e51c9 | 6665:e923d7cb8430 |
---|---|
224 | 224 |
225 -- packet layer -------------------------------------------------- packet layer | 225 -- packet layer -------------------------------------------------- packet layer |
226 | 226 |
227 | 227 |
228 function dns.random(...) -- - - - - - - - - - - - - - - - - - - dns.random | 228 function dns.random(...) -- - - - - - - - - - - - - - - - - - - dns.random |
229 math.randomseed(math.floor(10000*socket.gettime()) % 0x100000000); | 229 math.randomseed(math.floor(10000*socket.gettime()) % 0x80000000); |
230 dns.random = math.random; | 230 dns.random = math.random; |
231 return dns.random(...); | 231 return dns.random(...); |
232 end | 232 end |
233 | 233 |
234 | 234 |