uuid

Simple crystal uuid module
HEAD Latest release released

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

  1. Fork it ( https://github.com/raydf/crystal-uuid/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

uuid:
  github: raydf/crystal-uuid
  
License MIT
Crystal none

Authors

  • Rayner De Los Santos (qio)

Dependencies 0

Development Dependencies 0

Dependents 1

Similar shards

Last synced .
search fire star recently