| 12345678910111213141516171819202122 |
- //
- // Multiplatform.swift
- // CryptoSwift
- //
- // Created by Marcin Krzyzanowski on 03/12/15.
- // Copyright © 2015 Marcin Krzyzanowski. All rights reserved.
- //
- #if os(Linux)
- import Glibc
- import SwiftShims
- #else
- import Darwin
- #endif
- func cs_arc4random_uniform(upperBound: UInt32) -> UInt32 {
- #if os(Linux)
- return _swift_stdlib_arc4random_uniform(upperBound)
- #else
- return arc4random_uniform(upperBound)
- #endif
- }
|