import struct
import binascii


def crc32(m: bytes) -> bytes:
    """ Simple wrapper function to generate a CRC32 checksum. """
    # We bitand to ensure the value is the same across all Python versions.
    return struct.pack("<I", binascii.crc32(m) & 0xFFFFFFFF)