Skip to content

Commit b4242e0

Browse files
committed
fix(oss): Switch to non-deprecated method
1 parent 94517f1 commit b4242e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/buck2_critical_path/src/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn make_dag(nodes: usize, rng: &mut impl Rng) -> TestDag {
4242
let edges_count = edges_count.min(candidate_count);
4343

4444
keys.push(format!("k{i}"));
45-
weights.push(rng.gen_range(0..10_000));
45+
weights.push(rng.random_range(0..10_000));
4646
vertices.push(GraphVertex {
4747
edges_idx: edges.len().try_into().unwrap(),
4848
edges_count: edges_count.try_into().unwrap(),

0 commit comments

Comments
 (0)