You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently jacobi_symbol panics when p is even - perhaps this should return and Error, maybe -1?
/// Returns the Jacobi symbol `(a/p)` given an odd `p`. Panics on even `p`.pub(crate)fn jacobi_symbol<constL:usize>(a:i32,p_long:&Uint<L>) -> JacobiSymbol{
Idea being that any dependent libraries who import this function can handle errors/panics instead of the underlying library panicing.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: