Browse Source

Fix cs_arc4random_uniform for Linux

Marcin Krzyżanowski 10 years ago
parent
commit
447a27194c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CryptoSwift/Multiplatform.swift

+ 1 - 1
CryptoSwift/Multiplatform.swift

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