diff --git a/src/main/java/net/openhft/hashing/LongHashFunction.java b/src/main/java/net/openhft/hashing/LongHashFunction.java index 1245906..c9e968f 100644 --- a/src/main/java/net/openhft/hashing/LongHashFunction.java +++ b/src/main/java/net/openhft/hashing/LongHashFunction.java @@ -284,6 +284,32 @@ public static LongHashFunction xx(long seed) { return XxHash.asLongHashFunctionWithSeed(seed); } + /** + * Returns a hash function implementing the xxHash + * algorithm without a seed value (0 is used as default seed value). This implementation + * produces equal results for equal input on platforms with different {@link + * ByteOrder}, but is slower on big-endian platforms than on little-endian. + * + * @deprecated use {link #xx()} instead; this method exists for backwards compatibility. + */ + @Deprecated + public static LongHashFunction xx_r39() { + return xx(); + } + + /** + * Returns a hash function implementing the xxHash + * algorithm with the given seed value. This implementation produces equal results for equal + * input on platforms with different {@link ByteOrder}, but is slower on big-endian platforms + * than on little-endian. + * + * @deprecated use {link #xx(long)} instead; this method exists for backwards compatibility. + */ + @Deprecated + public static LongHashFunction xx_r39(long seed) { + return xx(seed); + } + /** * Returns a hash function implementing the XXH3 64bit * algorithm without a seed value (0 is used as default seed value). This implementation