build: make v8 use random seed for hash tables
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 8 Nov 2013 21:23:59 +0000 (22:23 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 8 Nov 2013 21:26:50 +0000 (22:26 +0100)
Upstream V8 as of commit v8/v8@4bc70e8 uses a fixed seed of 314159265
for hash tables unless instructed otherwise.  Tell V8 to keep using a
random seed.

configure

index b3a8b46..14455f4 100755 (executable)
--- a/configure
+++ b/configure
@@ -436,7 +436,8 @@ def configure_node(o):
   if options.dest_os == 'android':
     o['variables']['OS'] = 'android'
   o['variables']['v8_enable_gdbjit'] = 1 if options.gdb else 0
-  o['variables']['v8_no_strict_aliasing'] = 1 # work around compiler bugs
+  o['variables']['v8_no_strict_aliasing'] = 1  # Work around compiler bugs.
+  o['variables']['v8_random_seed'] = 0  # Use a random seed for hash tables.
   o['variables']['node_prefix'] = os.path.expanduser(options.prefix or '')
   o['variables']['node_install_npm'] = b(not options.without_npm)
   o['default_configuration'] = 'Debug' if options.debug else 'Release'