Skip to content

Commit

Permalink
Merge pull request #108 from larryonoff/swift42_random
Browse files Browse the repository at this point in the history
Replace `random` with Swift 4.2 version
  • Loading branch information
palpatim authored Nov 26, 2018
2 parents b4398cc + 342fdbe commit d0710f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AWSAppSyncClient/AWSAppSyncRetryHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ internal class AWSAppSyncRetryHandler {
}

static func getRandomBetween0And1() -> Float {
return Float(arc4random()) / Float(UINT32_MAX)
return Float.random(in: 0...1)
}
}

0 comments on commit d0710f7

Please sign in to comment.