소스 검색

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 {
     #if os(Linux)
-        return _swift_stdlib_arc4random_uniform(upperBound)
+        return _swift_stdlib_cxx11_mt19937_uniform(upperBound)
     #else
         return arc4random_uniform(upperBound)
     #endif