Characters Array in GeneratePassword.swift

I found out that with Xcode 7.0 beta the array declaration has to be altered (actually found out by importing the git hub code and converting from Xcode 6 to 7):

This is what Xcode 7 generates to Swift 2 when importing from prior Swift versions.
Seems as though the array took the values in as a string without the .characters part.

Obviously another solution would be to put it like so:

The second solution needs some slight updating due to Swift changes:

Additionally, to clear up compiler warnings, “index” can be changed to “_” within the generateRandomString function:

[code]func generateRandomString(length: Int) -> String {
// Start with an empty string
var string = “”

// Append 'length' number of characters
for _ in 0..<length {
    string.append(generateRandomCharacter())
}

return string

}[/code]