From b95acbece00a325291d73ac6b82f20ccc4b592f8 Mon Sep 17 00:00:00 2001 From: Quentin de Quelen Date: Tue, 19 Nov 2019 17:42:47 +0100 Subject: [PATCH] Function generate_uid return now lowercased uid --- meilidb-http/src/routes/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilidb-http/src/routes/index.rs b/meilidb-http/src/routes/index.rs index af29318e4..e44bdf7cc 100644 --- a/meilidb-http/src/routes/index.rs +++ b/meilidb-http/src/routes/index.rs @@ -19,7 +19,7 @@ use crate::Data; fn generate_uid() -> String { let mut rng = rand::thread_rng(); - let sample = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; + let sample = b"abcdefghijklmnopqrstuvwxyz0123456789"; sample .choose_multiple(&mut rng, 8) .map(|c| *c as char)