diff --git a/Hashids.xcodeproj/project.pbxproj b/Hashids.xcodeproj/project.pbxproj index fb18f27..63905a3 100644 --- a/Hashids.xcodeproj/project.pbxproj +++ b/Hashids.xcodeproj/project.pbxproj @@ -168,9 +168,11 @@ TargetAttributes = { 51AE31221B8D19F6007E7CA4 = { CreatedOnToolsVersion = 6.4; + LastSwiftMigration = 0800; }; 51AE312D1B8D19F6007E7CA4 = { CreatedOnToolsVersion = 6.4; + LastSwiftMigration = 0800; }; }; }; @@ -343,6 +345,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 2.3; }; name = Debug; }; @@ -361,6 +364,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.buzzfeed.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; + SWIFT_VERSION = 2.3; }; name = Release; }; @@ -376,6 +380,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.buzzfeed.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 2.3; }; name = Debug; }; @@ -387,6 +392,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.buzzfeed.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 2.3; }; name = Release; }; diff --git a/HashidsTests/HashidsTests.swift b/HashidsTests/HashidsTests.swift index 0af3a2f..80d0b66 100644 --- a/HashidsTests/HashidsTests.swift +++ b/HashidsTests/HashidsTests.swift @@ -101,7 +101,7 @@ class HashIdsTests: XCTestCase { func testBigDataSet() { var input = [Int]() for _ in 0..<100 { - input.append(random()) + input.append(Int(arc4random())) } let hashids = Hashids(salt: "this is my salt") let hash = hashids.encode(input)