diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-04-04 01:33:18 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-04-04 01:33:18 +0300 |
commit | 877ff9358f084368c74c04048317023b8c160db2 (patch) | |
tree | 3efcbc2d9eb7303cb7ffd4fccc283cf898834bbd | |
parent | cbece8b12ff50d625f526e0a1cc6345159b62eaa (diff) | |
download | nextcloud-server-877ff9358f084368c74c04048317023b8c160db2.tar.gz nextcloud-server-877ff9358f084368c74c04048317023b8c160db2.zip |
Don't expose the server installation time
-rwxr-xr-x | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 1fa3ad765d0..c9b12baa4da 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; |