Skip to content

Commit

Permalink
Fixed missing byteorder argument in stamp value calculation. Fixes #21.
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Oct 13, 2024
1 parent 36f0c17 commit c9272c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LXMF/LXStamper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def stamp_value(workblock, stamp):
value = 0
bits = 256
material = RNS.Identity.full_hash(workblock+stamp)
i = int.from_bytes(material)
i = int.from_bytes(material, byteorder="big")
while ((i & (1 << (bits - 1))) == 0):
i = (i << 1)
value += 1
Expand Down

0 comments on commit c9272c9

Please sign in to comment.