File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ ndarray = "0.14"
20
20
noisy_float = " 0.2.0"
21
21
num-integer = " 0.1"
22
22
num-traits = " 0.2"
23
- rand = " 0.7 "
23
+ rand = " 0.8.3 "
24
24
itertools = { version = " 0.10.0" , default-features = false }
25
25
indexmap = " 1.6.2"
26
26
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ where
116
116
self [ 0 ] . clone ( )
117
117
} else {
118
118
let mut rng = thread_rng ( ) ;
119
- let pivot_index = rng. gen_range ( 0 , n) ;
119
+ let pivot_index = rng. gen_range ( 0 .. n) ;
120
120
let partition_index = self . partition_mut ( pivot_index) ;
121
121
if i < partition_index {
122
122
self . slice_axis_mut ( Axis ( 0 ) , Slice :: from ( ..partition_index) )
@@ -251,7 +251,7 @@ fn _get_many_from_sorted_mut_unchecked<A>(
251
251
252
252
// We pick a random pivot index: the corresponding element is the pivot value
253
253
let mut rng = thread_rng ( ) ;
254
- let pivot_index = rng. gen_range ( 0 , n) ;
254
+ let pivot_index = rng. gen_range ( 0 .. n) ;
255
255
256
256
// We partition the array with respect to the pivot value.
257
257
// The pivot value moves to `array_partition_index`.
You can’t perform that action at this time.
0 commit comments