make tests deterministic

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1003658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-10-01 21:40:33 +00:00
parent 12987dd21a
commit 0e5d709bd7
1 changed files with 5 additions and 0 deletions

View File

@ -269,4 +269,9 @@ public class State implements Serializable, Comparable<State> {
public int compareTo(State s) { public int compareTo(State s) {
return s.id - id; return s.id - id;
} }
@Override
public int hashCode() {
return id;
}
} }