style: random 12 character string comment

This commit is contained in:
Sebastian Pravda 2022-12-16 17:47:18 +01:00
parent 0ef7844bcb
commit ad31b4be94
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

View file

@ -14,7 +14,7 @@ use std::str::FromStr;
use crate::error::ServiceError;
/// Foolproof random 12 char string
/// only uppercase letters (except for 0 and O) and numbers
/// Only uppercase letters (except for O) and numbers (except for 0)
pub fn random_12_char_string() -> String {
let random_chars_12: Vec<char> = rand::thread_rng()
.sample_iter(&rand::distributions::Alphanumeric)