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

Unified Diff: src/api.cc

Issue 23548024: Introduce a RandonNumberGenerator class. Refactor the random/private_random uses in Isolate/Context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. 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 | « no previous file | src/assembler.cc » ('j') | src/utils/random-number-generator.h » ('J')
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 1bc80d27d1d7761ad7b010a5749ffa804592b519..3f77f78fedda2f13806a612e6c9043a984a78700 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -64,6 +64,7 @@
#include "unicode-inl.h"
#include "v8threads.h"
#include "version.h"
+#include "utils/random-number-generator.h"
Michael Starzinger 2013/09/10 08:43:31 nit: Can we alpha-sort the includes?
Benedikt Meurer 2013/09/10 10:52:13 Done.
#include "vm-state-inl.h"
@@ -5208,8 +5209,8 @@ bool v8::V8::Initialize() {
}
-void v8::V8::SetEntropySource(EntropySource source) {
- i::V8::SetEntropySource(source);
+void v8::V8::SetEntropySource(EntropySource entropy_source) {
+ i::RandomNumberGenerator::SetEntropySource(entropy_source);
}
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | src/utils/random-number-generator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698