Expand description
Generate YYIDs
- GitHub: https://github.com/asaaki/yyid.rs
- crates.io: https://crates.io/crates/yyid
They are like UUIDs (v4), but using all the bits. Therefore they are not UUID standard compliant, so use with care or only for internal IDs.
§Example
use yyid::*;
println!("{}", Yyid::new());
// => "02e7f0f6-067e-8c92-b25c-12c9180540a9"§Other libraries for YYIDs
-
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
Modules§
- fmts
- Implementation for the reference types
Structs§
- Yyid
- A yniversally ynique identifier (Yyid).
Type Aliases§
- Bytes
- A 128-bit (16 byte) buffer containing the ID.