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

Unified Diff: src/api.cc

Issue 23530071: [Sheriff] Revert "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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index f1ecbf06d3fc242717df85cc486882fc1ffd315f..3030b8a1e03879085f6d801682c8ac4839136d3a 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -4942,13 +4942,6 @@ bool v8::V8::Initialize() {
void v8::V8::SetEntropySource(EntropySource entropy_source) {
- // The entropy source must be set before the library is initialized,
- // as otherwise not all random number generators will pick up the
- // entropy source and will fall back to weak entropy instead.
- i::Isolate* isolate = i::Isolate::UncheckedCurrent();
- ApiCheck(isolate != NULL && isolate->IsInitialized(),
- "v8::V8::SetEntropySource",
- "Cannot set entropy source once V8 is initialized.");
i::RandomNumberGenerator::SetEntropySource(entropy_source);
}
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698