pub fn new_v3(namespace: Uuid, name: &[u8]) -> Self {
        let mut hasher = Md5::new();
        hasher.update(namespace.to_bytes());
        hasher.update(name);
        let mut uuid = Uuid::from_bytes(hasher.finalize().into());
        uuid.set_version(Version::Md5);
        uuid.set_variant(Variant::Rfc4122);
        uuid
    }
/// Create a new Version 3 UUID with the provided name and namespace.
///
/// # Note
///
/// Version 3 UUID's use the obsolete MD5 algorithm,
/// [`Uuid::new_v5`] should be preferred.
///
/// # Example
///
/// ```rust
/// # use nuuid::{NAMESPACE_DNS, Uuid};
/// let uuid = Uuid::new_v3(NAMESPACE_DNS, b"example.com");
/// ```
Create a new Version 3 UUID with the provided name and namespace.
Create a new Version 3 UUID with the provided name and namespace .
pub fn new_v3(namespace: Uuid, name: &[u8]) -> Self {
        let mut hasher = Md5::new();
        hasher.update(namespace.to_bytes());
        hasher.update(name);
        let mut uuid = Uuid::from_bytes(hasher.finalize().into());
        uuid.set_version(Version::Md5);
        uuid.set_variant(Variant::Rfc4122);
        uuid
    }
pub fn new_v3 ( namespace : Uuid , name : & [ u8 ] ) -> Self { let mut hasher = Md5 :: new ( ) ; hasher . update ( namespace . to_bytes ( ) ) ; hasher . update ( name ) ; let mut uuid = Uuid :: from_bytes ( hasher . finalize ( ) . into ( ) ) ; uuid . set_version ( Version :: Md5 ) ; uuid . set_variant ( Variant :: Rfc4122 ) ; uuid }
Create a new Version 3 UUID with the provided name and namespace.
Create a new Version 3 UUID with the provided name and namespace .
namespace
Uuid
name
&[u8]
note
Version 3 UUID's use the obsolete MD5 algorithm,
[`Uuid::new_v5`] should be preferred.
Version 3 UUID ' s use the obsolete MD5 algorithm [ ` Uuid :: new_v5 ` ] should be preferred .
example
None
use nuuid::{namespace_dns, uuid};
let uuid = Uuid::new_v3(NAMESPACE_DNS, b"example.com");
```
let uuid = Uuid :: new_v3 ( NAMESPACE_DNS b " example . com " ) ; ` ` `