Explorar o código

fixed arc4random_uniform for Linux

Alsey Coleman Miller %!s(int64=9) %!d(string=hai) anos
pai
achega
985444c393
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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