Skip to content

Commit

Permalink
Fix deprecated warnings in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Nov 1, 2017
1 parent 0d80f48 commit 7dd4d00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/GzipTests/GzipTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ private extension String {

var string = ""
for _ in 0..<length {
let rand = Int(arc4random_uniform(UInt32(letters.characters.count)))
let rand = Int(arc4random_uniform(UInt32(letters.count)))
let index = letters.index(letters.startIndex, offsetBy: rand)
let character = letters.characters[index]
let character = letters[index]
string.append(character)
}

Expand Down

0 comments on commit 7dd4d00

Please sign in to comment.