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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1431233002: Remove blink's use of RC4 for random value generation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@random_asserts
Patch Set: Created 5 years, 1 month 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
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index c885851418ffe27144337e4cc6beb8e925b8ebc8..6c241bb83c117c3ba6fa515b76dd2d8d7d3cc7af 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -17,7 +17,6 @@
#include "base/metrics/histogram.h"
#include "base/metrics/sparse_histogram.h"
#include "base/process/process_metrics.h"
-#include "base/rand_util.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
@@ -58,6 +57,7 @@
#include "content/child/websocket_bridge.h"
#include "content/child/worker_task_runner.h"
#include "content/public/common/content_client.h"
+#include "crypto/random.h"
#include "net/base/data_url.h"
#include "net/base/ip_address_number.h"
#include "net/base/net_errors.h"
@@ -1089,7 +1089,7 @@ double BlinkPlatformImpl::systemTraceTime() {
void BlinkPlatformImpl::cryptographicallyRandomValues(
unsigned char* buffer, size_t length) {
- base::RandBytes(buffer, length);
+ crypto::RandBytes(buffer, length);
}
blink::WebGestureCurve* BlinkPlatformImpl::createFlingAnimationCurve(

Powered by Google App Engine
This is Rietveld 408576698