Explorar o código

Merge pull request #758 from Fryie/fix-swift-5.0

fix Swift 5.0 build
Marcin Krzyzanowski %!s(int64=5) %!d(string=hai) anos
pai
achega
6f9700219d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) })
     }
 }