SamJakob / xxh3

A Dart implementation (port) of the XXH3 hashing algorithm from xxHash.
https://pub.dev/packages/xxh3
MIT License
3 stars 1 forks source link

xxh3 hash generates different result from c xxh3 lib #1

Closed jasonhe88 closed 2 years ago

jasonhe88 commented 2 years ago

thank you for porting this lib!!

found this package generates different result from c lib.

dart, this package

xxh3(Uint8List.fromList(utf8.encode('test')), secret:null, seed: 0)

get result: -7004795540881933248

c lib get result: 5754696928334414137

is there anything I missed here?

jasonhe88 commented 2 years ago

Sorry, used wrong function in C, the result is perferectly matched