zhaih commented on a change in pull request #163: URL: https://github.com/apache/lucene/pull/163#discussion_r644141734
########## File path: lucene/core/src/java/org/apache/lucene/util/automaton/Operations.java ########## @@ -676,7 +677,7 @@ public static Automaton determinize(Automaton a, int maxDeterminizedStates) { // a.writeDot("/l/la/lucene/core/detin.dot"); // Same initial values and state will always have the same hashCode - FrozenIntSet initialset = new FrozenIntSet(new int[] {0}, 683, 0); + FrozenIntSet initialset = new FrozenIntSet(new int[] {0}, BitMixer.mix(0) + 1, 0); Review comment: Just to keep the hash code the same with the one used in `StateSet`, 0 should be the hash code used for 0 length array I think? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org