Use infix version of shl

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 4 years ago
parent 1a0b7c1d33
commit ce4de919b8
  1. 4
      crypto/src/main/java/dev/openrs2/crypto/IsaacRandom.kt

@ -268,8 +268,8 @@ class IsaacRandom {
private companion object {
private const val SIZEL = 8
private const val SIZE = 1.shl(SIZEL)
private const val MASK = (SIZE - 1).shl(2)
private const val SIZE = 1 shl SIZEL
private const val MASK = (SIZE - 1) shl 2
private const val GOLDEN_RATIO = 0x9e3779b9.toInt()
}
}

Loading…
Cancel
Save