Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3973)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/externalnav/IntentWithGesturesHandler.java

Issue 2176883002: Don't specify the SHA1PRNG algorithm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappAuthenticator.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/externalnav/IntentWithGesturesHandler.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/IntentWithGesturesHandler.java b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/IntentWithGesturesHandler.java
index 3c09f636e9f3e3093c139a789253eb8136d98978..983e38ab544dc8c0d204b9dc24f451985949972a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/IntentWithGesturesHandler.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/IntentWithGesturesHandler.java
@@ -14,7 +14,6 @@ import org.chromium.chrome.browser.IntentHandler;
import org.chromium.chrome.browser.util.IntentUtils;
import java.io.IOException;
-import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Arrays;
import java.util.concurrent.ExecutionException;
@@ -64,10 +63,8 @@ public class IntentWithGesturesHandler {
protected SecureRandom doInBackground(Void... params) {
SecureRandom secureRandom = null;
try {
- secureRandom = SecureRandom.getInstance("SHA1PRNG");
+ secureRandom = new SecureRandom();
SecureRandomInitializer.initialize(secureRandom);
- } catch (NoSuchAlgorithmException e) {
- Log.e(TAG, "Cannot create SecureRandom", e);
} catch (IOException ioe) {
Log.e(TAG, "Cannot initialize SecureRandom", ioe);
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappAuthenticator.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698