Skip to content

Commit c01262e

Browse files
committed
Switch to weak_rng.
The algorithm doesn't need a strong random number generator.
1 parent 482c98d commit c01262e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ pub struct RandomPointGenerator {
135135

136136
impl RandomPointGenerator {
137137
pub fn new() -> RandomPointGenerator {
138-
RandomPointGenerator {
139-
rng: Box::new(rand::thread_rng()),
140-
}
138+
RandomPointGenerator { rng: Box::new(rand::weak_rng()) }
141139
}
142140
}
143141

0 commit comments

Comments
 (0)