Understand xxhash digest endianness
masterAs of python-xxhash 0.3.0, the digest() method returns bytes representing the big-endian representation of the integer digest.
This means h.digest() is equivalent to h.intdigest().to_bytes(size, 'big').
Example:
import xxhash
h = xxhash.xxh64()
# The bytes returned by digest() match the big-endian integer conversion
print(h.digest() == h.intdigest().to_bytes(8, 'big')) # Trueimport xxhash
>>> h = xxhash.xxh64()
>>> h.digest()
b'\xefF\xdb7Q\xd8\xe9\x99'
>>> h.intdigest().to_bytes(8, 'big')
b'\xefF\xdb7Q\xd8\xe9\x99'