pub fn custom_random_str<F>(mut length: usize, rng: F) -> String
where
    F: FnMut(&mut [u8]),
{
    // Handle incorrect lengths.
    let remaining_bytes = length - length / 11 * 11;
    if let 1 | 4 | 8 = remaining_bytes {
        length -= 1;
    }

    let bytes = decoding::compute_decoded_size(length);

    custom_random_str(bytes, rng)
}
/// Generates a random G60 string of at most `length` characters using a custom random generator.
Generates a random G60 string of at most `length` characters using a custom random generator.
Generates a random G60 string of at most ` length ` characters using a custom random generator .
pub fn custom_random_str<F>(mut length: usize, rng: F) -> String
where
    F: FnMut(&mut [u8]),
{
    // Handle incorrect lengths.
    let remaining_bytes = length - length / 11 * 11;
    if let 1 | 4 | 8 = remaining_bytes {
        length -= 1;
    }
    let bytes = decoding::compute_decoded_size(length);
    custom_random_str(bytes, rng)
}
pub fn custom_random_str < F > ( mut length : usize , rng : F ) -> String where F : FnMut ( & mut [ u8 ] ) , { // Handle incorrect lengths. let remaining_bytes = length - length / 11 * 11 ; if let 1 | 4 | 8 = remaining_bytes { length -= 1 ; } let bytes = decoding :: compute_decoded_size ( length ) ; custom_random_str ( bytes , rng ) }
Generates a random G60 string of at most `length` characters using a custom random generator.
Generates a random G60 string of at most ` length ` characters using a custom random generator .
length
usize
rng
F
length
usize
rng
F