Skip to content

Commit

Permalink
Revert UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
vineetchoudhary committed Sep 8, 2016
1 parent add13e9 commit f66e830
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AppBox/Common/Common.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ @implementation Common

+ (NSString*)generateUUID {
NSMutableData *data = [NSMutableData dataWithLength:32];
int result = SecRandomCopyBytes(NULL, 32, data.mutableBytes);
NSAssert(result == 0, @"Error generating random bytes: %d", errno);
NSString *base64EncodedData = [data base64EncodedStringWithOptions:0];
base64EncodedData = [base64EncodedData stringByReplacingOccurrencesOfString:@"/" withString:@""];
return base64EncodedData;

}

#pragma mark - Notifications
Expand Down

0 comments on commit f66e830

Please sign in to comment.