Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function signed_crc32($)
- {
- $hash = crc32($text);
- if ($hash & 0x80000000)
- {
- $hash ^= 0xffffffff;
- $hash += 1;
- $hash = -$hash;
- }
- return $hash;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement