about summary refs log tree commit homepage
path: root/Hash_Functions
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2014-02-09 09:22:52 +0000
committerEric Wong <normalperson@yhbt.net>2014-02-09 09:25:19 +0000
commit434a20bcbc306ffb484c4a38e99ca82de2c0e08b (patch)
tree0f5b8f93a30b26b526eba9c6fe063b9906d8d46a /Hash_Functions
parent1ed6aacf5cb3265191acc61449fe68abd7c8f503 (diff)
downloadruby-tdb-434a20bcbc306ffb484c4a38e99ca82de2c0e08b.tar.gz
It's the preferred hash function nowadays by Ruby itself, so it
probably makes sense to add it
Diffstat (limited to 'Hash_Functions')
-rw-r--r--Hash_Functions13
1 files changed, 11 insertions, 2 deletions
diff --git a/Hash_Functions b/Hash_Functions
index 623bfab..e285120 100644
--- a/Hash_Functions
+++ b/Hash_Functions
@@ -19,6 +19,16 @@ corruption, so don't do it.
   {lookup3 hash}[http://www.burtleburtle.net/bob/c/lookup3.c].
   <code>:hash => :jenkins_lookup3</code>
 
+== SipHash
+
+https://en.wikipedia.org/wiki/Sip_Hash
+https://131002.net/siphash/
+
+Currently (as of Ruby 2.1) the favored hash in Ruby for hash-flooding
+protection.
+
+* :siphash24 - the reference implementation
+
 == Murmur family
 
 The {Murmur}[https://sites.google.com/site/murmurhash/] family of hashes
@@ -63,7 +73,6 @@ other architectures).
 
 == Bernstein hashes
 
-* :djb3 - The hash currently favored by Bernstein.
-  See http://www.cse.yorku.ca/~oz/hash.html
+* :djb3 - See http://www.cse.yorku.ca/~oz/hash.html
 
 * :djb2 - See http://www.cse.yorku.ca/~oz/hash.html