Skip to content

Commit

Permalink
Replace deprecated thread_rng with rng
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhannah committed Dec 13, 2024
1 parent cbc6faf commit cf8e88d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/pkpw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::io::{stdout, IsTerminal};
use arboard::Clipboard;
use clap::Parser;
use pkpw::generate;
use rand::thread_rng;
use rand::rng;

#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
Expand Down Expand Up @@ -36,7 +36,7 @@ struct Args {
/// Generate a password of four random Pokémon names joined by a separator.
fn main() {
let args = Args::parse();
let mut rng = thread_rng();
let mut rng = rng();
let password = generate(args.length, args.count, &args.separator, &mut rng);

if args.copy {
Expand Down

0 comments on commit cf8e88d

Please sign in to comment.