From b7c2d331b264605643fb2b11b1b75096558dbfdb Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Fri, 25 Mar 2022 22:56:50 +0100 Subject: fix: Extend special char Add missing special ASCII chars. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index a19cbfa..e8999d4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,7 +24,7 @@ pub fn generate(len: usize, lower: bool, upper: bool, number: bool, special: boo let mut upper_charset: Vec = String::from("ABCDEFGHIJKLMNOPQRSTUVWXYZ").chars().collect(); let mut lower_charset: Vec = String::from("abcdefghijklmnopqrstuvwxyz").chars().collect(); let mut number_charset: Vec = String::from("1234567890").chars().collect(); - let mut special_charset: Vec = String::from("!@#$%^&*()+{}[]").chars().collect(); + let mut special_charset: Vec = String::from("!@#$%^&*()+{}[]><:|+=;-.,'?_~\\/`\"").chars().collect(); let mut result: Vec = Vec::new(); let mut rng = rand::thread_rng(); -- cgit v1.2.3