Commits

Dariusz Luksza committed 81fdad2

Override hash method in ObjectID

hash method must be overwritten when equals is. This change adds proper
implementation of this method.

Comments (0)

Files changed (1)

             (o as ObjectID).time == this.time)
   }
   
+  override Int hash() {
+    return 31 * (inc.hash.xor(machine.hash) + time.hash)
+  }
+  
   OutStream write(OutStream o)
   {
     return o.writeI4(time).writeI4(machine).writeI4(inc)