Use hexadecimal notation.

This commit is contained in:
Daniele Alessandri
2013-02-17 12:27:45 +01:00
parent 6b6b73f5f4
commit f8e4ba152f
@@ -64,7 +64,7 @@ class CRC16HashGenerator implements HashGeneratorInterface
$strlen = strlen($value);
for ($i = 0; $i < $strlen; $i++) {
$crc = (($crc << 8) ^ $CCITT_16[($crc >> 8) ^ ord($value[$i])]) & 65535; // 0xFFFF
$crc = (($crc << 8) ^ $CCITT_16[($crc >> 8) ^ ord($value[$i])]) & 0xFFFF;
}
return $crc;