summaryrefslogtreecommitdiff
path: root/hv_func.h
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2015-10-01 15:04:29 -0400
committerTony Cook <tony@develop-help.com>2015-10-14 10:50:31 +1100
commitc2d4ebc6c9a49f99997e3438fc8288c7bdbeb2c0 (patch)
treef54a3b3e34a0b6ad19b2fad12eb82f5f8d592b02 /hv_func.h
parent5a55ed33047e05399ce1a3781bb35f300aa7fb63 (diff)
downloadperl-c2d4ebc6c9a49f99997e3438fc8288c7bdbeb2c0.tar.gz
fix NO_HASH_SEED build
commit b1300a738f added PERL_HASH_FUNC_ONE_AT_A_TIME_HARD algo, which was the first one to introduce 8 byte seeds, previously all the algos used 4 or 16 byte seeds. No case was added to the CPP tree for 8 byte const seeds, so add one now. Otherwise the #error at the end of the tree runs and breaks the build. NO_HASH_SEED define was public API in the past and could be considered to still be public API, see commit f36626324a. My use for NO_HASH_SEED is reducing entropy for tracking down memory corruption.
Diffstat (limited to 'hv_func.h')
-rw-r--r--hv_func.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hv_func.h b/hv_func.h
index b0e50e34c5..ce60e53919 100644
--- a/hv_func.h
+++ b/hv_func.h
@@ -84,6 +84,8 @@
# define PERL_HASH_SEED PL_hash_seed
# elif PERL_HASH_SEED_BYTES == 4
# define PERL_HASH_SEED "PeRl"
+# elif PERL_HASH_SEED_BYTES == 8
+# define PERL_HASH_SEED "PeRlHaSh"
# elif PERL_HASH_SEED_BYTES == 16
# define PERL_HASH_SEED "PeRlHaShhAcKpErl"
# else