mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-18 14:01:04 +00:00
style: random 12 character string comment
This commit is contained in:
parent
0ef7844bcb
commit
ad31b4be94
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue