From: Ben Noordhuis Date: Mon, 23 Sep 2013 12:27:26 +0000 (+0200) Subject: src: fix v8 PRNG entropy seeding X-Git-Tag: v0.11.8~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75ea566f5abd09882b25b9335f5ae6c53a22fcb6;p=platform%2Fupstream%2Fnodejs.git src: fix v8 PRNG entropy seeding It was pointed out by a member of the V8 team that the call to V8::SetEntropySource() should come before V8::Initialize(). See also commit 7ac2391. --- diff --git a/src/node.cc b/src/node.cc index 0f630c5..b736872 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3223,13 +3223,13 @@ int Start(int argc, char** argv) { const char** exec_argv; Init(&argc, const_cast(argv), &exec_argc, &exec_argv); - V8::Initialize(); #if HAVE_OPENSSL // V8 on Windows doesn't have a good source of entropy. Seed it from // OpenSSL's pool. V8::SetEntropySource(crypto::EntropySource); #endif + V8::Initialize(); { Locker locker(node_isolate); Environment* env =