pub fn generate(&self, seed: u64) -> LicenseKey {
        // Get the license key as a byte array
        let mut input = seed.to_be_bytes().to_vec();
        for iv in self.iv.iter() {
            for byte in self
                .hasher
                .hash(seed, iv.0, iv.1, iv.2)
                .to_be_bytes()
                .to_vec()
            {
                input.push(byte);
            }
        }

        // Calculate the checksum for the license key
        let checksum = calculate_checksum(&input);
        for byte in checksum.iter() {
            input.push(*byte);
        }

        LicenseKey::new(input)
    }
/// Creates a new license key with the specified seed.
Creates a new license key with the specified seed.
Creates a new license key with the specified seed .
pub fn generate(&self, seed: u64) -> LicenseKey {
        // Get the license key as a byte array
        let mut input = seed.to_be_bytes().to_vec();
        for iv in self.iv.iter() {
            for byte in self
                .hasher
                .hash(seed, iv.0, iv.1, iv.2)
                .to_be_bytes()
                .to_vec()
            {
                input.push(byte);
            }
        }
        // Calculate the checksum for the license key
        let checksum = calculate_checksum(&input);
        for byte in checksum.iter() {
            input.push(*byte);
        }
        LicenseKey::new(input)
    }
pub fn generate ( & self , seed : u64 ) -> LicenseKey { // Get the license key as a byte array let mut input = seed . to_be_bytes ( ) . to_vec ( ) ; for iv in self . iv . iter ( ) { for byte in self . hasher . hash ( seed , iv . 0 , iv . 1 , iv . 2 ) . to_be_bytes ( ) . to_vec ( ) { input . push ( byte ) ; } } // Calculate the checksum for the license key let checksum = calculate_checksum ( & input ) ; for byte in checksum . iter ( ) { input . push ( * byte ) ; } LicenseKey :: new ( input ) }
Creates a new license key with the specified seed.
Creates a new license key with the specified seed .
&self
seed
u64
&self
seed
u64