Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 846c831 commit d21cb9fCopy full SHA for d21cb9f
library/src/main/java/com/loopj/android/http/SimpleMultipartEntity.java
@@ -38,7 +38,7 @@
38
import java.io.OutputStream;
39
import java.util.ArrayList;
40
import java.util.List;
41
-import java.security.SecureRandom;
+import java.util.Random;
42
43
/**
44
* Simplified multipart entity mainly used for sending one or more files.
@@ -74,7 +74,7 @@ class SimpleMultipartEntity implements HttpEntity {
74
75
public SimpleMultipartEntity(ResponseHandlerInterface progressHandler) {
76
final StringBuilder buf = new StringBuilder();
77
- final SecureRandom rand = new SecureRandom();
+ final Random rand = new Random();
78
for (int i = 0; i < 30; i++) {
79
buf.append(MULTIPART_CHARS[rand.nextInt(MULTIPART_CHARS.length)]);
80
}
0 commit comments