From 805aaf956c4f36d7c291ef1139b8018a055c16f8 Mon Sep 17 00:00:00 2001 From: Bitgamma Date: Fri, 11 Dec 2020 12:12:46 +0300 Subject: [PATCH] Update SmartCard.swift fixed PUK generation --- ios/SmartCard.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/SmartCard.swift b/ios/SmartCard.swift index 65f5de7..24004c6 100644 --- a/ios/SmartCard.swift +++ b/ios/SmartCard.swift @@ -265,7 +265,7 @@ class SmartCard { } func randomPUK() -> String { - return String(format: "%012d", Int.random(in: 0..<999999999999)) + return String(format: "%012ld", Int64.random(in: 0..<999999999999)) } func randomPairingPassword() -> String {