diff --git a/AppBox/Common/Common.m b/AppBox/Common/Common.m index e81e3336..d361712a 100644 --- a/AppBox/Common/Common.m +++ b/AppBox/Common/Common.m @@ -12,13 +12,9 @@ @implementation Common + (NSString*)generateUUID { NSMutableData *data = [NSMutableData dataWithLength:32]; - if (((NSInteger *)SecRandomCopyBytes(NULL, 32, data.mutableBytes)) == 0){ - return @""; - }else{ - NSString *base64EncodedData = [data base64EncodedStringWithOptions:0]; - base64EncodedData = [base64EncodedData stringByReplacingOccurrencesOfString:@"/" withString:@""]; - return base64EncodedData; - } + NSString *base64EncodedData = [data base64EncodedStringWithOptions:0]; + base64EncodedData = [base64EncodedData stringByReplacingOccurrencesOfString:@"/" withString:@""]; + return base64EncodedData; } #pragma mark - Notifications diff --git a/AppBox/Info.plist b/AppBox/Info.plist index 91ed93aa..3b7b2894 100644 --- a/AppBox/Info.plist +++ b/AppBox/Info.plist @@ -34,7 +34,7 @@ CFBundleVersion - 1 + 2 LSApplicationCategoryType public.app-category.developer-tools LSMinimumSystemVersion