Quellcode durchsuchen

Mark randomIV as deprecated

Marcin Krzyżanowski vor 9 Jahren
Ursprung
Commit
a04c80a985
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      Sources/CryptoSwift/Cryptors.swift

+ 1 - 0
Sources/CryptoSwift/Cryptors.swift

@@ -23,6 +23,7 @@ public protocol Cryptors: class {
     func makeDecryptor() -> DecryptorType
 
     /// Generate array of random bytes. Helper function.
+    @available(*, deprecated: 0.6.0, message: "Use system random generator")
     static func randomIV(_ blockSize:Int) -> Array<UInt8>
 }