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

Unified Diff: components/html_viewer/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: components/html_viewer/blink_platform_impl.cc
diff --git a/components/html_viewer/blink_platform_impl.cc b/components/html_viewer/blink_platform_impl.cc
index 1f578ab384d6169088f32e3a704e1e29470b3ab6..9a572b839390bbfa73cc6a4d210f9834fd00b7eb 100644
--- a/components/html_viewer/blink_platform_impl.cc
+++ b/components/html_viewer/blink_platform_impl.cc
@@ -7,7 +7,6 @@
#include <cmath>
#include "base/command_line.h"
-#include "base/rand_util.h"
#include "base/stl_util.h"
#include "base/synchronization/waitable_event.h"
#include "base/thread_task_runner_handle.h"
@@ -26,6 +25,7 @@
#include "components/scheduler/child/webthread_impl_for_worker_scheduler.h"
#include "components/scheduler/renderer/renderer_scheduler.h"
#include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h"
+#include "crypto/random.h"
#include "mojo/application/public/cpp/application_impl.h"
#include "mojo/application/public/cpp/connect.h"
#include "mojo/common/user_agent.h"
@@ -135,7 +135,7 @@ double BlinkPlatformImpl::monotonicallyIncreasingTime() {
void BlinkPlatformImpl::cryptographicallyRandomValues(unsigned char* buffer,
size_t length) {
- base::RandBytes(buffer, length);
+ crypto::RandBytes(buffer, length);
}
bool BlinkPlatformImpl::isThreadedCompositingEnabled() {

Powered by Google App Engine
This is Rietveld 408576698