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

Unified Diff: runtime/include/dart_api.h

Issue 59773007: - Add a per-isolate pseudo random number generator to the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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: runtime/include/dart_api.h
===================================================================
--- runtime/include/dart_api.h (revision 29938)
+++ runtime/include/dart_api.h (working copy)
@@ -724,6 +724,7 @@
typedef void (*Dart_FileCloseCallback)(void* stream);
+typedef bool (*Dart_EntropySource)(uint8_t* buffer, size_t length);
/**
* Initializes the VM.
@@ -747,7 +748,8 @@
Dart_FileOpenCallback file_open,
Dart_FileReadCallback file_read,
Dart_FileWriteCallback file_write,
- Dart_FileCloseCallback file_close);
+ Dart_FileCloseCallback file_close,
+ Dart_EntropySource entropy_source);
/**
* Cleanup state in the VM before process termination.

Powered by Google App Engine
This is Rietveld 408576698