Changeset

593:121d82243023

Slightly more secure dialback secret generation
author Matthew Wild <mwild1@gmail.com>
date Sun, 07 Dec 2008 03:12:22 +0000
parents 592:c6e2c727d0cc
children 594:6d9b2da9888f
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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";