Websocket Support (#159)

This commit is contained in:
Gregory Schier
2025-01-31 09:00:11 -08:00
committed by GitHub
parent d411713502
commit c8be8082c5
122 changed files with 5090 additions and 616 deletions

View File

@@ -1,5 +1,6 @@
use rand::distributions::{Alphanumeric, DistString};
use rand::distr::Alphanumeric;
use rand::Rng;
pub fn gen_id() -> String {
Alphanumeric.sample_string(&mut rand::thread_rng(), 5)
rand::rng().sample_iter(&Alphanumeric).take(5).map(char::from).collect()
}