mirror of
https://github.com/markqvist/LXMF.git
synced 2025-07-06 03:44:42 -04:00
Fixed missing byteorder argument in stamp value calculation. Fixes #21.
This commit is contained in:
parent
36f0c17c8b
commit
c9272c9218
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue