diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/peering/basalt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peering/basalt.rs b/src/peering/basalt.rs index 7f77995..cd70c2b 100644 --- a/src/peering/basalt.rs +++ b/src/peering/basalt.rs @@ -138,7 +138,7 @@ impl BasaltView { let mut ret = vec![]; let mut rng = thread_rng(); for _i in 0..count { - let idx = rng.gen_range(0, possibles.len()); + let idx = rng.gen_range(0..possibles.len()); ret.push(self.slots[possibles[idx]].peer.unwrap()); } ret |