Collision-resistant ids optimized for horizontal scaling and binary search lookup performance.
This is port in Swift 4.2 language of the javascript project https://github.com/ericelliott/cuid
returns a short random string with some collision-busting measures. Safe to use as HTML element ID's, and unique server-side record lookups.
let id = Cuid.generateId()
To run the example project, clone the repo, and run pod install
from the Example directory first.
None
cuid is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'cuid'
Raphael MANSUY, raphael.mansuy@gmail.com
cuid is available under the MIT license. See the LICENSE file for more info.