Browse Source

Merge pull request #278 from colemancda/arc4random_uniform-fix

Arc4random uniform fix
Marcin Krzyzanowski 9 years ago
parent
commit
af0cf9fd30
1 changed files with 1 additions and 1 deletions
  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