Skip to content

Commit 626462e

Browse files
committed
chore(test): update rand api
1 parent a10bbd3 commit 626462e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn statics() {
2323

2424
let mut routes = ROUTES.to_vec();
2525

26-
routes.shuffle(&mut rand::thread_rng());
26+
routes.shuffle(&mut rand::rng());
2727

2828
let mut tree = PathTree::<usize>::new();
2929

@@ -64,7 +64,7 @@ fn wildcards() {
6464

6565
let mut routes = (0..20).zip(ROUTES.iter()).collect::<Vec<_>>();
6666

67-
routes.shuffle(&mut rand::thread_rng());
67+
routes.shuffle(&mut rand::rng());
6868

6969
let mut tree = PathTree::<usize>::new();
7070

0 commit comments

Comments
 (0)