Crates.io | yyid |
lib.rs | yyid |
version | 0.7.0 |
source | src |
created_at | 2015-09-28 23:12:15.523496 |
updated_at | 2022-12-02 23:05:01.600094 |
description | Yyid generator (random tokens like UUIDv4, but using all the bits) |
homepage | https://github.com/asaaki/yyid.rs |
repository | https://github.com/asaaki/yyid.rs |
max_upload_size | |
id | 3126 |
size | 60,370 |
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
Add yyid = "*"
to your dependencies section in Cargo.toml
.
use yyid::*;
fn main() {
println!("{}", Yyid::new());
// => "02e7f0f6-067e-8c92-b25c-12c9180540a9"
}
Licensed under either of
at your option.
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.