We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f2699 commit 2a63299Copy full SHA for 2a63299
SoObjects/SOGo/SOGoOpenIdSession.m
@@ -445,7 +445,12 @@ -(NSString *) _random_state
445
int i = 0;
446
447
for (i; i<10; i++) {
448
- [randomState appendFormat: @"%C", [letters characterAtIndex: arc4random_uniform([letters length])]];
+ int r = 0;
449
+ if (arc4random_uniform != NULL)
450
+ r = arc4random_uniform([letters length]);
451
+ else
452
+ r = (arc4random() % [letters length]);
453
+ [randomState appendFormat: @"%C", [letters characterAtIndex: r]];
454
}
455
456
return randomState;
0 commit comments