Micro optimization

This commit is contained in:
DBotThePony 2025-03-08 14:12:32 +07:00
parent ebdff6811d
commit 322d89f2a2
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -33,7 +33,7 @@ class LCG64Random(private var seed: Long = RandomSupport.generateUniqueSeed()) :
}
override fun nextLong(): Long {
val a = nextInt().toLong() and 0xFFFFFFFFL
val a = nextInt().toLong()
val b = nextInt().toLong() and 0xFFFFFFFFL
return a.shl(32) or b
}