Skip to content

Commit

Permalink
Remove setting seed in OxCaptcha, SecureRandom does this already by d…
Browse files Browse the repository at this point in the history
…efault
  • Loading branch information
Nonononoki committed Jul 26, 2021
1 parent 193bd03 commit 744f8ed
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/nonononoki/alovoa/lib/OxCaptcha.java
Expand Up @@ -479,7 +479,6 @@ public void noiseStrokes() {
}

public void noiseStrokes(int strokes, float width) {
RAND.setSeed(49);
_img_g.setStroke(new BasicStroke(width));
_img_g.setColor(_fg_color);
for (int i = 0; i < strokes; i++) {
Expand Down Expand Up @@ -820,7 +819,6 @@ public void distortionElastic(double alpha) {
}

public void distortionElastic(double alpha, int kernelSize, double sigma) {
RAND.setSeed(3);
int s[][] = getImageArray2D();
double source[][] = new double[_height][_width];
double dxField[][] = new double[_height][_width];
Expand Down

0 comments on commit 744f8ed

Please sign in to comment.