From 99e217e323f19318ce73a4502b85882e7067bf06 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Wed, 18 Sep 2019 09:45:14 +1000 Subject: [PATCH] Minor fixes. --- SignalMessaging/Loki/JazzIcon.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SignalMessaging/Loki/JazzIcon.swift b/SignalMessaging/Loki/JazzIcon.swift index be0315fa3..0f96053cc 100644 --- a/SignalMessaging/Loki/JazzIcon.swift +++ b/SignalMessaging/Loki/JazzIcon.swift @@ -8,7 +8,7 @@ extension String { } private class RNG { - private static let int32Max: Int = Int(Int32.max) // 2147483647 + private let int32Max: Int = Int(Int32.max) // 2147483647 private var seed: Int private var initial: Int @@ -21,7 +21,7 @@ private class RNG { func next() -> Int { // Casting to Int64 incase number goes above Int32 - let seed = (Int64(self.seed) * 16807) % int32Max + let seed = (Int64(self.seed) * 16807) % Int64(int32Max) self.seed = Int(seed) return self.seed }