Skip to content

Commit d045bb4

Browse files
author
Pierpaolo Frasa
committed
fix Swift 5.0 build
1 parent 9971207 commit d045bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CryptoSwift/Cryptors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ extension Cryptors {
3737
/// Convenience helper that uses `Swift.RandomNumberGenerator`.
3838
/// - Parameter count: Length of array
3939
public static func randomIV(_ count: Int) -> Array<UInt8> {
40-
(0..<count).map({ _ in UInt8.random(in: 0...UInt8.max) })
40+
return (0..<count).map({ _ in UInt8.random(in: 0...UInt8.max) })
4141
}
4242
}

0 commit comments

Comments
 (0)