macro_toolset

Macro random_string_fast

Source
macro_rules! random_string_fast {
    ($b:expr, $l:expr) => { ... };
}
Expand description

Generate random string base on xor-shift algorithm.

Notice: Length of string should be always <= 32 (u64)

ยงExample


let rs_lowercase = random_string_fast!(false, 32);
let rs_uppercase = random_string_fast!(true, 32);