summaryrefslogtreecommitdiffstats
path: root/obex
diff options
context:
space:
mode:
authorOscar Montemayor <oam@android.com>2009-09-20 13:23:36 -0700
committerOscar Montemayor <oam@android.com>2009-09-20 13:23:36 -0700
commit25f2c4cd953764008d04147a14d990c06a8154e5 (patch)
tree1ccb5fb9793a876449733ca3352e7e2a29f4882e /obex
parentd163f4babe101b89aaf322c34d3bafeae237f7da (diff)
downloadframeworks_base-25f2c4cd953764008d04147a14d990c06a8154e5.zip
frameworks_base-25f2c4cd953764008d04147a14d990c06a8154e5.tar.gz
frameworks_base-25f2c4cd953764008d04147a14d990c06a8154e5.tar.bz2
Modified random variable to use java.security.SecureRandom for authentication challenge genration.
Diffstat (limited to 'obex')
-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();
}
/**