Skip to content

Commit ed3ad23

Browse files
committed
Changed hash algo to fnv132 instead of fnv1a32 to avoid this: https://bugs.php.net/bug.php?id=66698 on older php versions
1 parent 39fbea6 commit ed3ad23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JuanF/Lib/Hash/Fnv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ class Fnv extends Hash
2828
*/
2929
public static function hash($txt)
3030
{
31-
return sprintf('%u', hexdec(hash('fnv1a32', $txt)));
31+
return sprintf('%u', hexdec(hash('fnv132', $txt)));
3232
}
3333
}

0 commit comments

Comments
 (0)