pub fn random_string(len: usize) -> String
Generates a random alphanumeric string of the specified length.
This is used for creating unique identifiers, such as connection IDs.