use rand::distributions::{Alphanumeric, DistString as _};
use super::SessionKey;
pub fn generate_session_key() -> SessionKey {
Alphanumeric
.sample_string(&mut rand::thread_rng(), 64)
.try_into()
.expect("generated string should be within size range for a session key")
}