Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
25f2c4cd
Commit
25f2c4cd
authored
15 years ago
by
Oscar Montemayor
Browse files
Options
Downloads
Patches
Plain Diff
Modified random variable to use java.security.SecureRandom for authentication challenge genration.
parent
d163f4ba
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
obex/javax/obex/HeaderSet.java
+3
-3
3 additions, 3 deletions
obex/javax/obex/HeaderSet.java
with
3 additions
and
3 deletions
obex/javax/obex/HeaderSet.java
+
3
−
3
View file @
25f2c4cd
...
...
@@ -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.Secure
Random
;
/**
* 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
Secure
Random
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
Secure
Random
();
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment