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

Unified Diff: mojo/dart/embedder/dart_controller.cc

Issue 1244823003: Remove dependency from //mojo to //crypto (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « mojo/dart/embedder/builtin_natives.cc ('k') | mojo/dart/embedder/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/dart_controller.cc
diff --git a/mojo/dart/embedder/dart_controller.cc b/mojo/dart/embedder/dart_controller.cc
index 256494e98a6b58321d9d1c1af81ef0c06005849d..6819c69286d906b0b99919b784a9eca7da9f5870 100644
--- a/mojo/dart/embedder/dart_controller.cc
+++ b/mojo/dart/embedder/dart_controller.cc
@@ -6,8 +6,8 @@
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
+#include "base/rand_util.h"
#include "base/sys_info.h"
-#include "crypto/random.h"
#include "dart/runtime/include/dart_api.h"
#include "dart/runtime/include/dart_native_api.h"
#include "mojo/dart/embedder/builtin.h"
@@ -658,7 +658,7 @@ bool DartController::RunSingleDartScript(const DartControllerConfig& config) {
}
static bool generateEntropy(uint8_t* buffer, intptr_t length) {
- crypto::RandBytes(reinterpret_cast<void*>(buffer), length);
+ base::RandBytes(reinterpret_cast<void*>(buffer), length);
return true;
}
« no previous file with comments | « mojo/dart/embedder/builtin_natives.cc ('k') | mojo/dart/embedder/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698