Skip to content

Commit

Permalink
replace product by sum in hash function
Browse files Browse the repository at this point in the history
  • Loading branch information
heiderich committed Jul 16, 2019
1 parent 45400e3 commit 2a927c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poly/poly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ end
###############################################################################

function Base.hash(p::spoly{T}, h::UInt) where T <: Nemo.RingElem
return total_degree(p) * h # FIXME: Implement a more useful hash function instead
return total_degree(p) + h # FIXME: Implement a more useful hash function instead
end


Expand Down

0 comments on commit 2a927c5

Please sign in to comment.