mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 11:09:50 +00:00
updated to new prefixed KeePassKit API. Fixed tests
This commit is contained in:
@@ -98,7 +98,7 @@ static NSString *mergeWithoutDuplicates(NSString* baseCharacters, NSString* cust
|
||||
if([self length] == 0) {
|
||||
return nil;
|
||||
}
|
||||
NSData *data = [NSData dataWithRandomBytes:sizeof(NSUInteger)];
|
||||
NSData *data = [NSData kpk_dataWithRandomBytes:sizeof(NSUInteger)];
|
||||
NSUInteger randomIndex;
|
||||
[data getBytes:&randomIndex length:data.length];
|
||||
return [self substringWithRange:NSMakeRange(randomIndex % self.length, 1)];
|
||||
|
||||
Reference in New Issue
Block a user