Skip to content
#

xxhash

Here are 48 public repositories matching this topic...

sean-abbott
sean-abbott commented Jun 21, 2019

The xxHash implementation doesn't produce predictable results when compared to python for strings (as in the given example.

I believe this is due to java's handling of character arrays: https://codeahoy.com/2016/05/08/the-char-type-in-java-is-broken/

We get predictable results when we dump to a byte array instead:
LongHashFunction.xx().hashBytes("test".getBytes()) gets the same output as

Improve this page

Add a description, image, and links to the xxhash topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the xxhash topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.