Don't expose the server installation time

This commit is contained in:
Lukas Reschke 2013-04-04 01:33:18 +03:00
parent cbece8b12f
commit 877ff9358f

View File

@ -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;