From f1c3c658113f653ec19f0411fdb5fcddf91f4833 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 23 Jan 2021 13:43:01 +0000 Subject: [PATCH] Use upper case hex digits in golden ratio constant Signed-off-by: Graham --- crypto/src/main/kotlin/org/openrs2/crypto/IsaacRandom.kt | 2 +- crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/src/main/kotlin/org/openrs2/crypto/IsaacRandom.kt b/crypto/src/main/kotlin/org/openrs2/crypto/IsaacRandom.kt index 75f3e3cd0e..afc466f367 100644 --- a/crypto/src/main/kotlin/org/openrs2/crypto/IsaacRandom.kt +++ b/crypto/src/main/kotlin/org/openrs2/crypto/IsaacRandom.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() } } diff --git a/crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt b/crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt index 75b2fd430d..183d972637 100644 --- a/crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt +++ b/crypto/src/main/kotlin/org/openrs2/crypto/Xtea.kt @@ -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