Open BrandonMFong opened 2 years ago
Yes I noticed this too.
I looked at the code and It seems mhl
writes the hash string out in little endian, whereas xxh64sum
uses big endian.
So you can either tell mhl
to use big endian by specifying the hash as (the undocumented) xxhash64be or tell xxh64sum
to use little endian via its --little-endian
flag.
I hope that saves anyone else wasting time figuring out why they're different 😊
Mike
Hi.
There has been a historical confusion with little- and big-endian xxhash64
hash modes in mhl
, which is also the reason why both modes are undocumented.
As @Mike-Woolley said, use xxhash64be
to get the (intended) big-endian hash.
Hello,
I am comparing your xxHash checksum verification with the xxHash checksum tool created by the xxHash developers. The following is my output:
The contents of the test.txt file is:
I do realize that your help does not expose the xxHash|xxHash64 options:
I don't know if this was as designed or a bug.
Please let me know if you have any questions
Best, Brando