In perl.git, the branch yves/rand_hash_seed has been updated
<
http://perl5.git.perl.org/perl.git/commitdiff/2114e3a5fb824644dce471ac1dec03997f09f51a?hp=cf93fea4e565bed9732f279ed71ea2258c91c8aa>
- Log -----------------------------------------------------------------
commit 2114e3a5fb824644dce471ac1dec03997f09f51a
Author: Yves Orton <
deme...@gmail.com>
Date: Sun Nov 4 13:23:15 2012 +0100
document siphash origins
-----------------------------------------------------------------------
Summary of changes:
hv.h | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/hv.h b/hv.h
index 44189f4..88753d3 100644
--- a/hv.h
+++ b/hv.h
@@ -147,6 +147,20 @@ struct xpvhv {
#if defined(PERL_HASH_FUNC_SIPHASH)
#define PERL_HASH_FUNC "SIPHASH"
+/* This is SipHash by Jean-Philippe Aumasson and Daniel J. Bernstein.
+ * The authors claim it is relatively secure compared to the alternatives
+ * and that performance wise it is a suitable hash for languages like Perl.
+ * See:
+ *
+ *
https://www.131002.net/siphash/
+ *
+ * This implementation seems to perform slightly slower than one-at-a-time for
+ * short keys, but degrades slower for longer keys. Murmur Hash outperforms it
+ * regardless of keys size.
+ *
+ * It is 64 bit only.
+ */
+
#define PERL_HASH_NEEDS_TWO_SEEDS
#ifndef U64
--
Perl5 Master Repository