YYID generator in Rust
Generates random tokens that look like type 4 UUIDs: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
In contrast to RFC 4122, it uses all digits (128bit).
Source of randomness: getrandom
Example
Rust
Add yyid = "*"
to your dependencies section in Cargo.toml
.
use YYID;
C
const char* my_yyid = ;
Documentation
Furthermore
The current implementation is derived from the uuid crate.
It does not implement everything (no parsing, only generation of tokens).
Functionality will also be reduced down to the reference implementations (see below).
Also Available
- YYID for Ruby
- YYID for JavaScript
- YYID for Elixir
- YYID for Go
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.