Skip to content

Commit a8187fe

Browse files
committed
Use the underlying function
1 parent 3fc52b5 commit a8187fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/random/XORShiftRandom.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private[spark] object XORShiftRandom {
6060
/** Hash seeds to have 0/1 bits throughout. */
6161
private[random] def hashSeed(seed: Long): Long = {
6262
val bytes = ByteBuffer.allocate(java.lang.Long.BYTES).putLong(seed).array()
63-
val lowBits = MurmurHash3.bytesHash(bytes)
63+
val lowBits = MurmurHash3.bytesHash(bytes, MurmurHash3.arraySeed)
6464
val highBits = MurmurHash3.bytesHash(bytes, lowBits)
6565
(highBits.toLong << 32) | (lowBits.toLong & 0xFFFFFFFFL)
6666
}

0 commit comments

Comments
 (0)