uuid
deprecated
Use SecureRandom.uuid in Std Lib.
crystal-uuid
Simple translation of Robert Kieffer javascript file http://www.broofa.com/Tools/Math.uuid.js
Installation
Add this to your application's shard.yml
:
dependencies:
uuid:
github: raydf/crystal-uuid
Usage
require "uuid"
puts UUID.generate
puts UUID.generate_simple
Just call UUID.generate_simple or UUID.generate. This library is pseudo uuid, in reality you'll need the mac address of the hardware to create a real uuid. Maybe later i could prepare the c bindings to libuuid that could be a better option in the long run.
Contributing
- Fork it ( https://github.com/raydf/crystal-uuid/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- [raydf] - creator