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.
const char** exec_argv;
Init(&argc, const_cast<const char**>(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 =