Micro optimization
This commit is contained in:
parent
ebdff6811d
commit
322d89f2a2
@ -33,7 +33,7 @@ class LCG64Random(private var seed: Long = RandomSupport.generateUniqueSeed()) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun nextLong(): Long {
|
override fun nextLong(): Long {
|
||||||
val a = nextInt().toLong() and 0xFFFFFFFFL
|
val a = nextInt().toLong()
|
||||||
val b = nextInt().toLong() and 0xFFFFFFFFL
|
val b = nextInt().toLong() and 0xFFFFFFFFL
|
||||||
return a.shl(32) or b
|
return a.shl(32) or b
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user