Awesome
cuid
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()
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
None
Installation
cuid is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'cuid'
Author
Raphael MANSUY, raphael.mansuy@gmail.com
License
cuid is available under the MIT license. See the LICENSE file for more info.