Skip to content

Commit

Permalink
Fix uuid issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vineetchoudhary committed Sep 8, 2016
1 parent 6ca209c commit add13e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions AppBox/Common/Common.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion AppBox/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<string>2</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit add13e9

Please sign in to comment.