Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump rand from 0.8.5 to 0.9.0 #694

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: fix breaking changes in rand
  • Loading branch information
LoricAndre committed Jan 29, 2025
commit 69d3069177aa1f865ab912463855ec249aed100a
4 changes: 2 additions & 2 deletions e2e/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::{
time::Duration,
};

use rand::distributions::{Alphanumeric, DistString as _};
use rand::distr::{Alphanumeric, SampleString as _};
use tempfile::{tempdir, NamedTempFile, TempDir};
use which::which;

Expand Down Expand Up @@ -93,7 +93,7 @@ impl TmuxController {

let shell_cmd = "bash --rcfile None";

let name = Alphanumeric.sample_string(&mut rand::thread_rng(), 16);
let name = Alphanumeric.sample_string(&mut rand::rng(), 16);

Self::run(&[
"new-window",
Expand Down
4 changes: 2 additions & 2 deletions skim/src/tmux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::{
};

use nix::{sys::stat, unistd::mkfifo};
use rand::{distributions::Alphanumeric, Rng};
use rand::{distr::Alphanumeric, Rng};
use tuikit::key::Key;
use which::which;

Expand Down Expand Up @@ -93,7 +93,7 @@ pub fn run_with(opts: &SkimOptions) -> Option<SkimOutput> {
// Create temp dir for downstream output
let temp_dir_name = format!(
"sk-tmux-{}",
&rand::thread_rng()
&rand::rng()
.sample_iter(&Alphanumeric)
.take(8)
.map(char::from)
Expand Down
Loading