Forráskód Böngészése

fixed arc4random_uniform for Linux

Alsey Coleman Miller 9 éve
szülő
commit
985444c393
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Sources/CryptoSwift/Multiplatform.swift

+ 1 - 1
Sources/CryptoSwift/Multiplatform.swift

@@ -15,7 +15,7 @@
 
 func cs_arc4random_uniform(_ upperBound: UInt32) -> UInt32 {
     #if os(Linux)
-        return _swift_stdlib_arc4random_uniform(upperBound)
+        return _swift_stdlib_cxx11_mt19937_uniform(upperBound)
     #else
         return arc4random_uniform(upperBound)
     #endif