Skip to content

Commit 7f95ba1

Browse files
mdevoldeJDziurlaj
authored andcommitted
fix(tally): fix shared default ciphertext in tally selection
1 parent 38e100c commit 7f95ba1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/electionguard/tally.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class CiphertextTallySelection(ElectionObjectBase, CiphertextSelection):
5353
"""
5454

5555
ciphertext: ElGamalCiphertext = field(
56-
default=ElGamalCiphertext(ONE_MOD_P, ONE_MOD_P)
56+
default_factory=lambda: ElGamalCiphertext(ONE_MOD_P, ONE_MOD_P)
5757
)
5858
"""
5959
The encrypted representation of the total of all ballots for this selection

0 commit comments

Comments
 (0)