pub fn new() -> Self {
        let (mac, gen) = match mac_address::get_mac_address() {
            Ok(Some(addr)) => (addr.bytes(), V1),
            //It is generally ok to use v4 as it is unique enough
            _ => ([0; 6], V4)
        };

        Self {
            mac,
            gen
        }
    }
///Creates new instance.
///
///If mac address is available, generator will use `uuid` v1.
///Otherwise it defaults to `v4`
///
///In case that is not desirable please use `new_v4` to only use random generator.
Creates new instance.
If mac address is available, generator will use `uuid` v1.
Otherwise it defaults to `v4`

In case that is not desirable please use `new_v4` to only use random generator.
Creates new instance . If mac address is available generator will use ` uuid ` v1 . Otherwise it defaults to ` v4 ` In case that is not desirable please use ` new_v4 ` to only use random generator .
pub fn new() -> Self {
        let (mac, gen) = match mac_address::get_mac_address() {
            Ok(Some(addr)) => (addr.bytes(), V1),
            //It is generally ok to use v4 as it is unique enough
            _ => ([0; 6], V4)
        };
        Self {
            mac,
            gen
        }
    }
pub fn new ( ) -> Self { let ( mac , gen ) = match mac_address :: get_mac_address ( ) { Ok ( Some ( addr ) ) => ( addr . bytes ( ) , V1 ) , //It is generally ok to use v4 as it is unique enough _ => ( [ 0 ; 6 ] , V4 ) } ; Self { mac , gen } }
Creates new instance.
Creates new instance .