Skip to content

Commit e2300a3

Browse files
committed
Findbugs
1 parent 4cafe3a commit e2300a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,11 @@ public FieldElement pow22523() {
846846

847847
@Override
848848
public int hashCode() {
849-
return t.hashCode(); // TODO should this be something else?
849+
int rv = 0;
850+
for (int i = 0; i < 10; i++) {
851+
rv ^= t[i];
852+
}
853+
return rv;
850854
}
851855

852856
@Override

0 commit comments

Comments
 (0)