From b2cff6d4c05ae1d139e07f8d6f5838535e2932bb Mon Sep 17 00:00:00 2001 From: Evie Viau Date: Mon, 2 May 2022 20:50:56 -0400 Subject: [PATCH] Use 32 character session_id to match Discord's session_id length --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cfb0c39..8c43735 100644 --- a/src/main.rs +++ b/src/main.rs @@ -236,7 +236,7 @@ async fn handle_conn(peer: SocketAddr, stream: TcpStream, redis_client: Client, let session_id: String = rand::thread_rng() .sample_iter(&Alphanumeric) - .take(64) + .take(32) .map(char::from) .collect();