Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////
- // Need for Speed Rivals Custom CRC32 //
- // Created by kill_seth for Ellipse //
- // Please include credits if used //
- ////////////////////////////////////////
- public uint Compute(byte[] buffer, uint seed)
- {
- uint crc = seed ^ 0xFFFFFFFF;
- for (int i = 0; i < buffer.Length; i++)
- {
- crc = (crc >> 8) ^ CrcTable[((crc & 0xff) ^ buffer[i])];
- }
- return crc ^ 0xFFFFFFFF;
- }
Advertisement
Add Comment
Please, Sign In to add comment