import zlib


def zlib_handler(method):
    """
    Prepare hash method and seed depending on CRC32/Adler32.

    :param method: "crc32" or "adler32".
    :type method: str
    """
    hashfunc = zlib.crc32 if method == "crc32" else zlib.adler32
    seed = 0 if method == "crc32" else 1
    return hashfunc, seed