소스 검색

fix Swift 5.0 build

Pierpaolo Frasa 6 년 전
부모
커밋
d045bb4d4d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/CryptoSwift/Cryptors.swift

+ 1 - 1
Sources/CryptoSwift/Cryptors.swift

@@ -37,6 +37,6 @@ extension Cryptors {
   /// Convenience helper that uses `Swift.RandomNumberGenerator`.
   /// - Parameter count: Length of array
     public static func randomIV(_ count: Int) -> Array<UInt8> {
-      (0..<count).map({ _ in UInt8.random(in: 0...UInt8.max) })
+      return (0..<count).map({ _ in UInt8.random(in: 0...UInt8.max) })
     }
 }