hajimes/mmh3

hash64/hash128/hash_bytes(..., x64arch = False) fail on s390x

hajimes opened this issue · 1 comments

Test cases for the functions hash64/hash128/hash_bytes fail on s390x when the arg x64arch is False (https://github.com/hajimes/mmh3/actions/runs/7396371609), likely because the architecture is big-endian.

  >       assert mmh3.hash64("foo", signed=False, x64arch=False) == (
              6968798590592097061,
              6968798590746895717,
          )
  E       assert (630394342576...8590746895717) == (696879859059...8590746895717)
  E         At index 0 diff: 6303943425762141541 != 6968798590592097061
  E         Use -v to get more diff

The result should be the same as the value in little-endian environments (feature from 4.0.0).

Done in version 4.1.0.