summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-15 05:59:03 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-15 05:59:03 +0000
commit68eb5ea1efb75e449f289180c9a867eabe33d101 (patch)
treebf4daf94edadb00c421599a234a5dacd5d211bb0 /hash.c
parent5b0efd3932a51dc0d0c003f8f1509248066f8050 (diff)
downloadruby-68eb5ea1efb75e449f289180c9a867eabe33d101.tar.gz
ruby-68eb5ea1efb75e449f289180c9a867eabe33d101.tar.xz
ruby-68eb5ea1efb75e449f289180c9a867eabe33d101.zip
* hash.c (hash_i): use Murmurhash.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index abce6f7ec..c916ff3ab 100644
--- a/hash.c
+++ b/hash.c
@@ -1523,8 +1523,7 @@ static int
hash_i(VALUE key, VALUE val, int *hval)
{
if (key == Qundef) return ST_CONTINUE;
- *hval ^= rb_hash(key);
- *hval ^= rb_hash(val);
+ *hval ^= rb_hash_end(rb_hash_uint(rb_hash_start(rb_hash(key)), rb_hash(val)));
return ST_CONTINUE;
}