This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8058d0d
)
The size of PL_hash_seed depends on the chosen hash algorithm.
author
Nicholas Clark
<nick@ccl4.org>
Fri, 23 Nov 2012 10:42:02 +0000
(11:42 +0100)
committer
Nicholas 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
patch
|
blob
|
blame
|
history
diff --git
a/perlvars.h
b/perlvars.h
index
68471a0
..
f8bb821
100644
(file)
--- a/
perlvars.h
+++ b/
perlvars.h
@@
-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 */