From 877ff9358f084368c74c04048317023b8c160db2 Mon Sep 17 00:00:00 2001 From: Lukas Reschke <lukas@statuscode.ch> Date: Thu, 4 Apr 2013 01:33:18 +0300 Subject: [PATCH] Don't expose the server installation time --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 1fa3ad765d..c9b12baa4d 100755 --- a/lib/util.php +++ b/lib/util.php @@ -419,7 +419,7 @@ class OC_Util { $id = OC_Config::getValue('instanceid', null); if(is_null($id)) { // We need to guarantee at least one letter in instanceid so it can be used as the session_name - $id = 'oc' . uniqid(); + $id = 'oc' . OC_Util::generate_random_bytes(10); OC_Config::setValue('instanceid', $id); } return $id; -- GitLab