Skip to content
Browse files

Replacing arc4random() with arc4random_uniform().

  • Loading branch information...
1 parent 191929a commit 368aad1b7d29d52dd4af43d3b7fe6ebede65c3db Jan Weiß committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 RandomSequence/RandomSequence.m
View
2 RandomSequence/RandomSequence.m
@@ -65,7 +65,7 @@ - (RandomSequence *)init
{
if ((self = [super init]))
{
- _seed = arc4random() % RandomModulus;
+ _seed = arc4random_uniform(RandomModulus);
}
return self;
}

0 comments on commit 368aad1

Please sign in to comment.
Something went wrong with that request. Please try again.