# HG changeset patch # User Matthew Wild # Date 1228619542 0 # Node ID 121d8224302369af0705be1a9f72562b97e3944c # Parent c6e2c727d0cc28b493108e3cb124cac3c44724b1 Slightly more secure dialback secret generation diff -r c6e2c727d0cc -r 121d82243023 core/s2smanager.lua --- a/core/s2smanager.lua Sat Dec 06 23:23:08 2008 +0000 +++ b/core/s2smanager.lua Sun Dec 07 03:12:22 2008 +0000 @@ -43,7 +43,7 @@ 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";