Skip to content

Commit f554b54

Browse files
committed
Use xxh128 instead of md5
1 parent ec0e16c commit f554b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transliterator/EmojiTransliterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function transliterate(string $string, int $start = 0, int $end = -1): st
110110
static $cookie;
111111
static $transliterator;
112112

113-
$cookie ??= md5(random_bytes(8));
113+
$cookie ??= hash('xxh128', random_bytes(8));
114114
$this->transliterator ??= clone $transliterator ??= \Transliterator::createFromRules('[:any:]* > '.$cookie);
115115

116116
if (false === $result = $this->transliterator->transliterate($string, $start, $end)) {

0 commit comments

Comments
 (0)