diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/LCG64Random.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/LCG64Random.kt index d6edf5afc..eb939ab0b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/LCG64Random.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/LCG64Random.kt @@ -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 }