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

Unified Diff: dart/runtime/bin/dartutils.cc

Issue 60733003: Version 0.8.10.6 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 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: dart/runtime/bin/dartutils.cc
===================================================================
--- dart/runtime/bin/dartutils.cc (revision 29958)
+++ dart/runtime/bin/dartutils.cc (working copy)
@@ -10,12 +10,13 @@
#include "platform/assert.h"
#include "platform/globals.h"
+#include "bin/crypto.h"
+#include "bin/directory.h"
#include "bin/extensions.h"
-#include "bin/directory.h"
#include "bin/file.h"
#include "bin/io_buffer.h"
+#include "bin/socket.h"
#include "bin/utils.h"
-#include "bin/socket.h"
namespace dart {
namespace bin {
@@ -243,6 +244,11 @@
}
+bool DartUtils::EntropySource(uint8_t* buffer, intptr_t length) {
+ return Crypto::GetRandomBytes(length, buffer);
+}
+
+
static Dart_Handle SingleArgDart_Invoke(Dart_Handle lib, const char* method,
Dart_Handle arg) {
const int kNumArgs = 1;

Powered by Google App Engine
This is Rietveld 408576698