From 82ccbba12401cefd9398f70fb2ad763025fa3919 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 17 Feb 2009 07:03:40 +0000 Subject: Move private key generation into the installer so that we're not generating it lazily. --- core/helpers/access.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'core/helpers') diff --git a/core/helpers/access.php b/core/helpers/access.php index 9bf9da6c..6540e3b8 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -590,10 +590,6 @@ class access_Core { } static function private_key() { - if (!($key = module::get_var('core', 'private_key'))) { - $key = md5(uniqid(mt_rand(), true)) . md5(uniqid(mt_rand(), true)); - module::set_var('core', 'private_key', $key); - } - return $key; + return module::get_var("core", "private_key"); } } -- cgit v1.2.3