Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #28 from nodes-vapor/bugfix/fix-string-references
Browse files Browse the repository at this point in the history
string() -> makeString()
  • Loading branch information
steffendsommer authored May 3, 2017
2 parents 6c213f1 + 3cb59c1 commit 2f7fb48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/String+Random.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ extension String {
/// - Returns: String
/// - Throws: Error
public static func random(_ length: Int = 64) throws -> String {
return try Random.bytes(count: length).string()
return try Random.bytes(count: length).makeString()
}
}
2 changes: 1 addition & 1 deletion Sources/String+Sugar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Foundation
extension String {
/// Generates a String of random characters (path safe)
public static func random(length: Int) throws -> String {
return try Random.bytes(count: length).base64Encoded.string().replacingOccurrences(
return try Random.bytes(count: length).base64Encoded.makeString().replacingOccurrences(
of: "/", with: "_"
)
}
Expand Down

0 comments on commit 2f7fb48

Please sign in to comment.