summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--obex/javax/obex/HeaderSet.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/obex/javax/obex/HeaderSet.java b/obex/javax/obex/HeaderSet.java
index 8b457f6..b89b707 100644
--- a/obex/javax/obex/HeaderSet.java
+++ b/obex/javax/obex/HeaderSet.java
@@ -35,7 +35,7 @@ package javax.obex;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Calendar;
-import java.util.Random;
+import java.security.SecureRandom;
/**
* This class implements the javax.obex.HeaderSet interface for OBEX over
@@ -209,7 +209,7 @@ public final class HeaderSet {
private Long[] mIntegerUserDefined; // 4 byte unsigned integer
- private final Random mRandom;
+ private final SecureRandom mRandom;
/*package*/ byte[] nonce;
@@ -231,7 +231,7 @@ public final class HeaderSet {
mByteUserDefined = new Byte[16];
mIntegerUserDefined = new Long[16];
responseCode = -1;
- mRandom = new Random();
+ mRandom = new SecureRandom();
}
/**