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"
2020noisy_float = " 0.2.0"
2121num-integer = " 0.1"
2222num-traits = " 0.2"
23- rand = " 0.7 "
23+ rand = " 0.8.3 "
2424itertools = { version = " 0.10.0" , default-features = false }
2525indexmap = " 1.6.2"
2626
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ where
116116 self [ 0 ] . clone ( )
117117 } else {
118118 let mut rng = thread_rng ( ) ;
119- let pivot_index = rng. gen_range ( 0 , n) ;
119+ let pivot_index = rng. gen_range ( 0 .. n) ;
120120 let partition_index = self . partition_mut ( pivot_index) ;
121121 if i < partition_index {
122122 self . slice_axis_mut ( Axis ( 0 ) , Slice :: from ( ..partition_index) )
@@ -251,7 +251,7 @@ fn _get_many_from_sorted_mut_unchecked<A>(
251251
252252 // We pick a random pivot index: the corresponding element is the pivot value
253253 let mut rng = thread_rng ( ) ;
254- let pivot_index = rng. gen_range ( 0 , n) ;
254+ let pivot_index = rng. gen_range ( 0 .. n) ;
255255
256256 // We partition the array with respect to the pivot value.
257257 // The pivot value moves to `array_partition_index`.
You can’t perform that action at this time.
0 commit comments