From 322d89f2a2923a7efd243b7a06959a6e2da93077 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 8 Mar 2025 14:12:32 +0700 Subject: [PATCH] Micro optimization --- src/main/kotlin/ru/dbotthepony/mc/otm/core/util/LCG64Random.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }