This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The size of PL_hash_seed depends on the chosen hash algorithm.
authorNicholas Clark <nick@ccl4.org>
Fri, 23 Nov 2012 10:42:02 +0000 (11:42 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 23 Nov 2012 12:57:01 +0000 (13:57 +0100)
For most 8 is fine, but SipHash needs 16.

perlvars.h

index 68471a0..f8bb821 100644 (file)
@@ -233,4 +233,4 @@ PERLVAR(G, malloc_mutex, perl_mutex)        /* Mutex for malloc */
 #endif
 
 PERLVARI(G, hash_seed_set, bool, FALSE)        /* perl.c */
-PERLVARA(G, hash_seed, 8, unsigned char) /* and hv.h */
+PERLVARA(G, hash_seed, PERL_HASH_SEED_BYTES, unsigned char) /* and hv.h */