Use upper case hex digits in golden ratio constant

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent 1e3257acf7
commit f1c3c65811
  1. 2
      crypto/src/main/kotlin/org/openrs2/crypto/IsaacRandom.kt
  2. 2
      crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt

@ -270,6 +270,6 @@ public class IsaacRandom : StreamCipher {
private const val SIZEL = 8
private const val SIZE = 1 shl SIZEL
private const val MASK = (SIZE - 1) shl 2
private const val GOLDEN_RATIO = 0x9e3779b9.toInt()
private const val GOLDEN_RATIO = 0x9E3779B9.toInt()
}
}

@ -2,7 +2,7 @@ package org.openrs2.crypto
import io.netty.buffer.ByteBuf
private const val GOLDEN_RATIO = 0x9e3779b9.toInt()
private const val GOLDEN_RATIO = 0x9E3779B9.toInt()
private const val ROUNDS = 32
private const val BLOCK_SIZE = 8
private const val BLOCK_SIZE_MASK = BLOCK_SIZE - 1

Loading…
Cancel
Save