yyid 0.2.4

YYID generator (random tokens like UUIDv4)
Documentation

YYID generator in Rust Travis yyid on crates.io MMM incubated

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: rand

Example

Rust

Add yyid = "*" to your dependencies section in Cargo.toml.

extern crate yyid;

use yyid::yyid_string;

fn main() {
    println!("{}", yyid_string());
    // => "02e7f0f6-067e-8c92-b25c-12c9180540a9"
}

C

#include "path/to/yyid.rs/include/libyyid.h"
const char* my_yyid = yyid_c_string();

Documentation

Can be found at http://asaaki.github.io/yyid.rs/yyid/index.html.

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

License

Licensed under either of

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.