Skip to content

Commit

Permalink
override hashCode in ModularBigInteger
Browse files Browse the repository at this point in the history
  • Loading branch information
iaik-jheher committed May 23, 2024
1 parent 1f61d2a commit c8f397f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,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 c8f397f

Please sign in to comment.