Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d21cb9f

Browse files
committed
Reverting Lint fix for Random->SecureRandom
1 parent 846c831 commit d21cb9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/com/loopj/android/http/SimpleMultipartEntity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
import java.io.OutputStream;
3939
import java.util.ArrayList;
4040
import java.util.List;
41-
import java.security.SecureRandom;
41+
import java.util.Random;
4242

4343
/**
4444
* Simplified multipart entity mainly used for sending one or more files.
@@ -74,7 +74,7 @@ class SimpleMultipartEntity implements HttpEntity {
7474

7575
public SimpleMultipartEntity(ResponseHandlerInterface progressHandler) {
7676
final StringBuilder buf = new StringBuilder();
77-
final SecureRandom rand = new SecureRandom();
77+
final Random rand = new Random();
7878
for (int i = 0; i < 30; i++) {
7979
buf.append(MULTIPART_CHARS[rand.nextInt(MULTIPART_CHARS.length)]);
8080
}

0 commit comments

Comments
 (0)