Преглед изворни кода

Mark randomIV as deprecated

Marcin Krzyżanowski пре 9 година
родитељ
комит
a04c80a985
1 измењених фајлова са 1 додато и 0 уклоњено
  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>
 }