Crate yyid [−] [src]
Generate YYIDs
Based on following micro libraries:
Ruby: https://github.com/janlelis/yyid.rb
# Code here, since it is only a require and a one-liner: require "securerandom" "%08x-%04x-%04x-%04x-%04x%08x" % SecureRandom.random_bytes(16).unpack("NnnnnN") #=> "37ab3494-7e04-ecf1-b99f-259999a44d16"
JavaScript: https://github.com/janlelis/yyid.js
TODO: Reduce/simplify code to meet the API of the other libraries (a hyphenated string only)
Structs
YYID |
Type Definitions
YYIDBytes |