summarylogtreecommitdiffstats
path: root/fix-deprecated-function-warning.patch
blob: b4e723b309c9d8eef633c042569a4f1d27685650 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/commands/git.rs
+++ b/src/commands/git.rs
@@ -564,7 +564,7 @@ fn git_reset<'a, T: TxnTExt + MutTxnTExt>(
                                     let mut tmp_path = new_path.to_path_buf();
                                     tmp_path.pop();
                                     use rand::Rng;
-                                    let s: String = rand::thread_rng()
+                                    let s: String = rand::rng()
                                         .sample_iter(&rand::distr::Alphanumeric)
                                         .take(30)
                                         .map(|x| x as char)