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

Unified Diff: sky/engine/web/Sky.cpp

Issue 691483005: Remove Platform::cryptographicallyRandomValues (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/testing/platform/platform_impl.cc ('k') | sky/viewer/platform/platform_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/Sky.cpp
diff --git a/sky/engine/web/Sky.cpp b/sky/engine/web/Sky.cpp
index 7b2eb1fc9ee206ae447b2b6768a6d3580b223461..5441aed79e0d1e91fe4aac5e01f82e37a8cc9128 100644
--- a/sky/engine/web/Sky.cpp
+++ b/sky/engine/web/Sky.cpp
@@ -32,6 +32,7 @@
#include "public/web/Sky.h"
#include "base/message_loop/message_loop.h"
+#include "base/rand_util.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8GCController.h"
#include "bindings/core/v8/V8Initializer.h"
@@ -145,7 +146,7 @@ static double monotonicallyIncreasingTimeFunction()
static void cryptographicallyRandomValues(unsigned char* buffer, size_t length)
{
- Platform::current()->cryptographicallyRandomValues(buffer, length);
+ base::RandBytes(buffer, length);
}
static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* context)
« no previous file with comments | « sky/engine/testing/platform/platform_impl.cc ('k') | sky/viewer/platform/platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698