X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=472814a6db546d9a07e41732bc43533982249a69;hb=1a8d8e4c07d8af0b31c91eb522c296e6c044e846;hp=a553698e5eadcb7fd39851e7c1bb1145b8326f56;hpb=a0cdd9c67446b8e7a5a81e64e72478310a235d65;p=friendica.git diff --git a/boot.php b/boot.php index a553698e5e..472814a6db 100644 --- a/boot.php +++ b/boot.php @@ -1,6 +1,6 @@ get_hostname()); + $prefix = hash('crc32', $a->get_hostname()); } while (strlen($prefix) < ($size - 13)) { @@ -864,10 +869,10 @@ function get_guid($size = 16, $prefix = "") if ($size >= 24) { $prefix = substr($prefix, 0, $size - 22); - return(str_replace(".", "", uniqid($prefix, true))); + return str_replace('.', '', uniqid($prefix, true)); } else { $prefix = substr($prefix, 0, max($size - 13, 0)); - return(uniqid($prefix)); + return uniqid($prefix); } }