This commit is contained in:
Adrian Hopek 2022-03-16 11:52:01 +01:00
parent 89722eb9eb
commit 5fd20eba28

View File

@ -25,7 +25,7 @@ class ColorGenerator
} }
for ($i = 0; $i < mb_strlen($text); $i++) { for ($i = 0; $i < mb_strlen($text); $i++) {
$hash = abs((int) (($hash << 2) - $hash) + mb_ord($text[$i])); $hash = abs((int)(($hash << 2) - $hash) + mb_ord($text[$i]));
} }
return $hash; return $hash;