Skip to content
Snippets Groups Projects
Commit 877ff935 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Don't expose the server installation time

parent cbece8b1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment