summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-04 00:48:55 -0700
committerBart Visscher <bartv@thisnet.nl>2013-04-04 00:48:55 -0700
commit52fba43297aaef84dc85636380ecb4ca224d359d (patch)
tree8da7449bd3219af2e9bd0645725059150424e59e
parent2f1962940785eb4aeb781d4c08fa19b8bc407050 (diff)
parent877ff9358f084368c74c04048317023b8c160db2 (diff)
downloadnextcloud-server-52fba43297aaef84dc85636380ecb4ca224d359d.tar.gz
nextcloud-server-52fba43297aaef84dc85636380ecb4ca224d359d.zip
Merge pull request #2708 from owncloud/dont_expose_installatio
Don't expose the server installation time
-rwxr-xr-xlib/util.php2
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;