diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-12-07 03:12:22 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-12-07 03:12:22 +0000 |
commit | 2b0083790b89bc9be5ba7ee1cae812bf57134b6a (patch) | |
tree | 8d06a6f61947d3f38dc464944d26d5cfecb5f84a | |
parent | 2395f6511aa68766d74d8292d7360e4d295b7197 (diff) | |
download | prosody-2b0083790b89bc9be5ba7ee1cae812bf57134b6a.tar.gz prosody-2b0083790b89bc9be5ba7ee1cae812bf57134b6a.zip |
Slightly more secure dialback secret generation
-rw-r--r-- | core/s2smanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index ae834a9c..7827381d 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -43,7 +43,7 @@ local log = logger_init("s2smanager"); local sha256_hash = require "util.hashes".sha256; -local dialback_secret = "This is very secret!!! Ha!"; +local dialback_secret = sha256_hash(tostring{} .. math.random() .. socket.gettime(), true); local dns = require "net.dns"; |