Skip to main content

generate_uuid

Function generate_uuid 

Source
pub fn generate_uuid(username: &str) -> Uuid
Expand description

Return what the offline-mode UUIDv3 for the given username would be.

Examples found in repository?
azalea-protocol/examples/packet_logger.rs (line 521)
518    fn uuid(&self) -> Uuid {
519        match self {
520            Account::Microsoft { uuid, .. } => *uuid,
521            Account::Offline { username } => azalea_crypto::offline::generate_uuid(username),
522        }
523    }