rusty-diceware

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit de060e454ab90fd5ee0cfe3d1287abe2c34e81ef
parent 25bcf51d5d2d059cf180c0b9fccfd26f9c97ac14
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Tue, 16 Jun 2015 23:27:40 +0300

Deleting unused function

Diffstat:
Msrc/main.rs | 11-----------
1 file changed, 0 insertions(+), 11 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -26,17 +26,6 @@ fn make_options() -> Options { } -fn print_passphrase(wordlist: Vec<&str>, word_num: u64) -> () { - let mut rng = rand::OsRng::new().unwrap(); - let mut c = rng.choose(&wordlist); - for _ in 0..word_num-1 { - print!("{} ", c.unwrap()); - c = rng.choose(&wordlist); - } - println!("{}", c.unwrap()); -} - - fn print_usage(program: &str, opts: Options) { let brief = format!("Usage: {} [options]", program); print!("{}", opts.usage(&brief));