Skip to content

Commit 1dedaab

Browse files
committed
Use explicit UInt8 to fix compilation error on Linux and Swift 5.0
1 parent 1edca6d commit 1dedaab

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 .random(in: 0...UInt8.max) })
40+
(0..<count).map({ _ in UInt8.random(in: 0...UInt8.max) })
4141
}
4242
}

0 commit comments

Comments
 (0)