diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-27 12:45:38 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-27 12:45:38 -0400 |
commit | dabf4a2600206307e69d2ff8525b11dea600ad90 (patch) | |
tree | 37bcf7cbe66006ea0de220ceb2d4058ff8a1bfe5 | |
parent | 070de88dc411f51aec4e3f33d88fd437697d3ced (diff) |
pattern generator: more patterns
-rw-r--r-- | passwords.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passwords.rs b/passwords.rs index db2fd9e..cb1f93e 100644 --- a/passwords.rs +++ b/passwords.rs @@ -16,8 +16,8 @@ fn main() { let range = |a, b| (a as u8..b as u8 + 1).collect::<Vec<_>>(); let patterns: Vec<Vec<u8>> = vec![ - range('a', 'z'), - range('1', '9'), + range('a', 'z').into_iter().chain(range('1', '9').into_iter()).collect(), + vec!('a' as u8, 'c' as u8), range('a', 'z'), range('a', 'z'), range('a', 'z') |