Skip to content

Commit

Permalink
Merge pull request #294 from iaik-jheher/bugfix/modint-hashcode
Browse files Browse the repository at this point in the history
Override hashCode in ModularBigInteger
  • Loading branch information
ionspin authored May 23, 2024
2 parents 17cb3e9 + c8f397f commit 2445d4a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ class ModularBigInteger private constructor(
}
}

override fun hashCode(): Int {
return residue.hashCode()
}

override fun toString(): String {
return residue.toString()
}
Expand Down

0 comments on commit 2445d4a

Please sign in to comment.