mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
Function generate_uid return now lowercased uid
This commit is contained in:
parent
c94f4dff71
commit
b95acbece0
@ -19,7 +19,7 @@ use crate::Data;
|
|||||||
|
|
||||||
fn generate_uid() -> String {
|
fn generate_uid() -> String {
|
||||||
let mut rng = rand::thread_rng();
|
let mut rng = rand::thread_rng();
|
||||||
let sample = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
let sample = b"abcdefghijklmnopqrstuvwxyz0123456789";
|
||||||
sample
|
sample
|
||||||
.choose_multiple(&mut rng, 8)
|
.choose_multiple(&mut rng, 8)
|
||||||
.map(|c| *c as char)
|
.map(|c| *c as char)
|
||||||
|
Loading…
Reference in New Issue
Block a user