Crate yyid [−] [src]
Generate YYIDs
- GitHub: https://github.com/asaaki/yyid.rs
- crates.io: https://crates.io/crates/yyid
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 |
Functions
yyid_c_string |
Creates a new random YYID as a C-compatible char* |
yyid_string |
Creates a new random YYID as String |
Type Definitions
YYIDBytes |