Преглед на файлове

fixed arc4random_uniform for Linux

Alsey Coleman Miller преди 9 години
родител
ревизия
985444c393
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Sources/CryptoSwift/Multiplatform.swift

+ 1 - 1
Sources/CryptoSwift/Multiplatform.swift

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