diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..d0b9234 --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +DEVELOPMENT-SNAPSHOT-2016-05-09-a diff --git a/SlackKit/Sources/NetworkInterface.swift b/SlackKit/Sources/NetworkInterface.swift index fe743e0..a6cd9ff 100644 --- a/SlackKit/Sources/NetworkInterface.swift +++ b/SlackKit/Sources/NetworkInterface.swift @@ -125,7 +125,11 @@ internal struct NetworkInterface { } private func randomBoundary() -> String { - return "slackkit.boundary.\(arc4random())\(arc4random())" + #if os(Linux) + return "slackkit.boundary.\(Int(random()))\(Int(random()))" + #else + return "slackkit.boundary.\(arc4random())\(arc4random())" + #endif } private func requestStringFromParameters(parameters: [String: Any]) -> String {