Software / code / prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 6643:127b9f0c6135 | 6646:9795b8cf14f1 |
|---|---|
| 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 |