X-Git-Url: https://git.mdrn.pl/wl-app.git/blobdiff_plain/53b27422d140022594fc241cca91c3183be57bca..48b2fe9f7c2dc3d9aeaaa6dbfb27c7da4f3235ff:/iOS/Pods/OAuthSwift/Sources/Utils.swift diff --git a/iOS/Pods/OAuthSwift/Sources/Utils.swift b/iOS/Pods/OAuthSwift/Sources/Utils.swift new file mode 100644 index 0000000..8d13615 --- /dev/null +++ b/iOS/Pods/OAuthSwift/Sources/Utils.swift @@ -0,0 +1,23 @@ +// +// Utils.swift +// OAuthSwift +// +// Created by Dongri Jin on 1/28/15. +// Copyright (c) 2015 Dongri Jin. All rights reserved. +// + +import Foundation + +public func generateState(withLength len: Int) -> String { + let letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" + let length = UInt32(letters.count) + + var randomString = "" + for _ in 0..