projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd8c55
)
net.dns: Make sure argument to math.randomseed does not overflow a 32 bit *signed...
author
Kim Alvefur
<zash@zash.se>
Sun, 26 Apr 2015 17:50:24 +0000
(19:50 +0200)
committer
Kim Alvefur
<zash@zash.se>
Sun, 26 Apr 2015 17:50:24 +0000
(19:50 +0200)
net/dns.lua
patch
|
blob
|
history
diff --git
a/net/dns.lua
b/net/dns.lua
index 28cb44190eced9d73df3aaabbd582ca633c7eb57..763ee9ec644a6b230f78b325fa2768874f4e6e5b 100644
(file)
--- a/
net/dns.lua
+++ b/
net/dns.lua
@@
-225,7
+225,7
@@
end
function dns.random(...) -- - - - - - - - - - - - - - - - - - - dns.random
- math.randomseed(math.floor(10000*socket.gettime()) % 0x
10
0000000);
+ math.randomseed(math.floor(10000*socket.gettime()) % 0x
8
0000000);
dns.random = math.random;
return dns.random(...);
end