Closed ok-john closed 7 months ago
jacobi_symbol()
is not currently exported, so these panics are more of a debug asserts (maybe that's what they should be instead).
jacobi_symbol()
takes an Odd
-wrapped integer since #38, so this is no longer an issue.
Currently
jacobi_symbol
panics whenp
is even - perhaps this should return and Error, maybe -1?Idea being that any dependent libraries who import this function can handle errors/panics instead of the underlying library panicing.