Skip to content

Commit

Permalink
gen_ratio -> random_ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Feb 2, 2025
1 parent 283dede commit c14e297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/vote-interface/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1807,13 +1807,13 @@ mod tests {
.take(32)
.sorted_by_key(|lockout| lockout.slot())
.collect();
let root = rng.gen_ratio(1, 2).then(|| {
let root = rng.random_ratio(1, 2).then(|| {
lockouts[0]
.slot()
.checked_sub(rng.random_range(0..1_000))
.expect("All slots should be greater than 1_000")
});
let timestamp = rng.gen_ratio(1, 2).then(|| rng.random());
let timestamp = rng.random_ratio(1, 2).then(|| rng.random());
let hash = Hash::from(rng.random::<[u8; 32]>());
let vote_state_update = VoteStateUpdate {
lockouts,
Expand Down

0 comments on commit c14e297

Please sign in to comment.