Procházet zdrojové kódy

Merge pull request #757 from marcelofabri/explict-uint8

Use explicit UInt8 to fix compilation error on Linux and Swift 5.0
Marcin Krzyzanowski před 6 roky
rodič
revize
028aaf99ec
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 .random(in: 0...UInt8.max) })
+      (0..<count).map({ _ in UInt8.random(in: 0...UInt8.max) })
     }
 }