Changeset

1308:7b20a3d87244

s2smanager: Use a UUID as the dialback secret
author Waqas Hussain <waqas20@gmail.com>
date Thu, 04 Jun 2009 21:12:36 +0500
parents 1307:c9c58aa990bb
children 1309:a544e68a0989
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Thu Jun 04 21:11:33 2009 +0500
+++ b/core/s2smanager.lua	Thu Jun 04 21:12:36 2009 +0500
@@ -35,7 +35,7 @@
 
 local sha256_hash = require "util.hashes".sha256;
 
-local dialback_secret = sha256_hash(tostring{} .. math.random() .. socket.gettime(), true);
+local dialback_secret = uuid_gen();
 
 local adns = require "net.adns";