def hash_xxhash(bytes) ->bytes:
    """should be faster than sha1, but subject to collisions, using this mainly for hashing ndarray"""
    import xxhash
    m = xxhash.xxh64()
    m.update(bytes)
    return m.digest()
