I need to convert the following c code (to calculate checksum for a file) to python. I had written, the corresponding code in python but the result didn\'t match the c versi
Use numpy.int32 or numpy.uint32 if you need to restrict the range. Or mod it by 1 << 32 after operations that could "overflow".
numpy.uint32
1 << 32