| 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;
|
|
|