Murmur3 gives out different hash values for the same input #7
Open
Description
Running in jshell
import com.sangupta.murmur.Murmur3;
byte[] data2 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1};
Murmur3.hash_x64_128(data2, data2.length, 0);
Murmur3.hash_x64_128(data2, data2.length, 0);
Murmur3.hash_x64_128(data2, data2.length, 0);
Murmur3.hash_x64_128(data2, data2.length, 0);
returns
import com.sangupta.murmur.Murmur3
field byte[] data2 = byte[17] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1 }
Murmur3.hash_x64_128(data2, data2.length, 0); = long[2] { 2108477303888159446, 3080087960434196035 }
Murmur3.hash_x64_128(data2, data2.length, 0); = long[2] { -5533461732917773897, -8684579065263202028 }
Murmur3.hash_x64_128(data2, data2.length, 0); = long[2] { -5533461732917773897, -8684579065263202028 }
Murmur3.hash_x64_128(data2, data2.length, 0); = long[2] { -5533461732917773897, -8684579065263202028 }
Expected all return values to be equal.
running OracleJDK 12.0.2.
Metadata
Assignees
Labels
No labels