Function gen_id

Source
pub fn gen_id() -> String
Expand description

Returns a string representation of a random UUID v4.

§Example

The string should be 36 characters long.

use dsntk_common::gen_id;

assert_eq!(36, gen_id().len());

§References