found and fixed hashing bug

This commit is contained in:
Torsten Ruger
2016-12-31 14:04:04 +02:00
parent d6c503ecf4
commit 0fa7f54bcc
2 changed files with 9 additions and 4 deletions

View File

@ -47,7 +47,7 @@ module Parfait
def self.hash_code_for_hash( dict )
index = 1
hash_code = 5467
hash_code = str_hash(dict[:type])
dict.each do |name , type|
next if name == :type
item_hash = str_hash(name) + str_hash(type)