Skip to content

Commit

Permalink
chore(deps): bump rand from 0.8.5 to 0.9.0 (#694)
Browse files Browse the repository at this point in the history
* chore(deps): bump rand from 0.8.5 to 0.9.0

Bumps [rand](https://github.com/rust-random/rand) from 0.8.5 to 0.9.0.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](rust-random/rand@0.8.5...0.9.0)

---
updated-dependencies:
- dependency-name: rand
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: fix breaking changes in rand

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: LoricAndre <[email protected]>
  • Loading branch information
dependabot[bot] and LoricAndre authored Jan 29, 2025
1 parent 4102e5a commit 5698c6d
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 19 deletions.
77 changes: 64 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion e2e/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]
rand = "0.8.5"
rand = "0.9.0"
tempfile = "3.15.0"
which = "7.0.1"
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
2 changes: 1 addition & 1 deletion skim/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ crossbeam = "0.8.2"
beef = "0.5.2" # compact cow
defer-drop = "1.3.0"
indexmap = "2.7.1"
rand = "0.8.5"
rand = "0.9.0"
which = "7.0.1"
shell-quote = "0.7.2"

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

0 comments on commit 5698c6d

Please sign in to comment.