pub fn new_v4() -> Uuid {
        let ub = rand::task_rng().gen_vec(16);
        let mut uuid = Uuid{ bytes: [0, .. 16] };
        vec::bytes::copy_memory(uuid.bytes, ub);
        uuid.set_variant(VariantRFC4122);
        uuid.set_version(Version4Random);
        uuid
    }
/// Creates a new random UUID
///
/// Uses the `rand` module's default RNG task as the source
/// of random numbers. Use the rand::Rand trait to supply
/// a custom generator if required.
Creates a new random UUID
Uses the `rand` module's default RNG task as the source
of random numbers. Use the rand::Rand trait to supply
a custom generator if required.
Creates a new random UUID Uses the ` rand ` module ' s default RNG task as the source of random numbers . Use the rand :: Rand trait to supply a custom generator if required .
pub fn new_v4() -> Uuid {
        let ub = rand::task_rng().gen_vec(16);
        let mut uuid = Uuid{ bytes: [0, .. 16] };
        vec::bytes::copy_memory(uuid.bytes, ub);
        uuid.set_variant(VariantRFC4122);
        uuid.set_version(Version4Random);
        uuid
    }
pub fn new_v4 ( ) -> Uuid { let ub = rand :: task_rng ( ) . gen_vec ( 16 ) ; let mut uuid = Uuid { bytes : [ 0 , .. 16 ] } ; vec :: bytes :: copy_memory ( uuid . bytes , ub ) ; uuid . set_variant ( VariantRFC4122 ) ; uuid . set_version ( Version4Random ) ; uuid }
Creates a new random UUID
Uses the `rand` module's default RNG task as the source
of random numbers.
Creates a new random UUID Uses the ` rand ` module ' s default RNG task as the source of random numbers .