make equality_data immutable operation

This commit is contained in:
Marek Kaluba 2023-03-22 21:45:04 +01:00
parent 038fc29b81
commit 751850568c
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
## Hashing
equality_data(g::AbstractFPGroupElement) = (normalform!(g); word(g))
equality_data(g::AbstractFPGroupElement) = word(g)
bitget(h::UInt, n::Int) = Bool((h & (1 << n)) >> n)
bitclear(h::UInt, n::Int) = h & ~(1 << n)