Chromium Code Reviews

Unified Diff: include/v8.h

Issue 24357002: Let SetEntropySource() fail if called after V8::Initialize(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 79f4478ea6f626ff297314b4ed227d5dc088abed..0425d625f85d200974046a27e2afdf194fb24fc6 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -4511,8 +4511,13 @@ class V8_EXPORT V8 {
/**
* Allows the host application to provide a callback which can be used
* as a source of entropy for random number generators.
+ *
+ * \returns true if the entropy source was installed successfully, false
+ * on failure.
+ * \note Setting an entropy source can only be done very early prior to
+ * calling any other V8-related function.
Dmitry Lomov (no reviews) 2013/09/23 11:24:15 This is vague; the true statement is that SetEntro
Benedikt Meurer 2013/09/23 11:36:41 Done.
*/
- static void SetEntropySource(EntropySource source);
+ static bool SetEntropySource(EntropySource source);
/**
* Allows the host application to provide a callback that allows v8 to
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine