We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6f837c commit bb40ef2Copy full SHA for bb40ef2
1 file changed
core/src/main/scala/org/apache/spark/util/random/XORShiftRandom.scala
@@ -61,7 +61,7 @@ private[spark] object XORShiftRandom {
61
62
/** Hash seeds to have 0/1 bits throughout. */
63
private[random] def hashSeed(seed: Long): Long = {
64
- val bytes = ByteBuffer.allocate(java.lang.Long.SIZE).putLong(seed).array()
+ val bytes = ByteBuffer.allocate(java.lang.Long.BYTES).putLong(seed).array()
65
val lowBits = MurmurHash3.bytesHash(bytes)
66
val highBits = MurmurHash3.bytesHash(bytes, lowBits)
67
(highBits.toLong << 32) | (lowBits.toLong & 0xFFFFFFFFL)
0 commit comments