diff --git a/packages/mobile/ios/Quiet/AppDelegate.m b/packages/mobile/ios/Quiet/AppDelegate.m index 0d57cef630..7706f61020 100644 --- a/packages/mobile/ios/Quiet/AppDelegate.m +++ b/packages/mobile/ios/Quiet/AppDelegate.m @@ -95,19 +95,6 @@ - (void) createDataDirectory { self.dataPath = [dataDirectory create]; } - NSString* randomStringWithLength(int length) { - NSString *letters = @"0123456789"; - NSMutableString *randomString = [NSMutableString stringWithCapacity:length]; - - for (int i=0; i String { - let letters = "0123456789" - var randomString = String() + func generateSecret(length: Int) -> String { + let characters = Array("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") + var randomString = "" for _ in 0..