We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fc52b5 commit a8187feCopy full SHA for a8187fe
core/src/main/scala/org/apache/spark/util/random/XORShiftRandom.scala
@@ -60,7 +60,7 @@ private[spark] object XORShiftRandom {
60
/** Hash seeds to have 0/1 bits throughout. */
61
private[random] def hashSeed(seed: Long): Long = {
62
val bytes = ByteBuffer.allocate(java.lang.Long.BYTES).putLong(seed).array()
63
- val lowBits = MurmurHash3.bytesHash(bytes)
+ val lowBits = MurmurHash3.bytesHash(bytes, MurmurHash3.arraySeed)
64
val highBits = MurmurHash3.bytesHash(bytes, lowBits)
65
(highBits.toLong << 32) | (lowBits.toLong & 0xFFFFFFFFL)
66
}
0 commit comments