mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Use hexadecimal notation.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user