summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/state.rb b/state.rb
index aab4051..fc29cce 100644
--- a/state.rb
+++ b/state.rb
@@ -123,7 +123,7 @@ class State
# Our ID is a function of our class and deps
def hash
- (self.class.hash ** 2 + @deps.hash) % 0x4000000000000000
+ @deps.inject(self.class.hash){ |x,y| (x ** 2 + y) % 0x4000000000000000 }
end
# A state is rooted in a set of states if any state in the set which it _may_