Chromium Code Reviews| Index: runtime/bin/dartutils.cc |
| =================================================================== |
| --- runtime/bin/dartutils.cc (revision 29938) |
| +++ runtime/bin/dartutils.cc (working copy) |
| @@ -11,6 +11,7 @@ |
| #include "platform/globals.h" |
| #include "bin/extensions.h" |
| +#include "bin/crypto.h" |
| #include "bin/directory.h" |
|
siva
2013/11/05 23:37:46
extensions.h should come here in the order.
Ivan Posva
2013/11/05 23:44:56
Done.
|
| #include "bin/file.h" |
| #include "bin/io_buffer.h" |
| @@ -243,6 +244,11 @@ |
| } |
| +bool DartUtils::EntropySource(uint8_t* buffer, size_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; |