Skip to main content

random_base62

Function random_base62 

Source
pub fn random_base62(seed: Seed, len: usize) -> String
Expand description

Generate a deterministic base62 string from the provided seed.

Uses rejection sampling to avoid modulo bias for normal RNG outputs. Includes a deterministic bounded fallback path to avoid hangs with pathological RNGs that never emit acceptable bytes.