mirror of
https://github.com/markqvist/LXMF.git
synced 2024-12-25 07:09:37 -05:00
Fixed missing byteorder argument in stamp value calculation. Fixes #21.
This commit is contained in:
parent
36f0c17c8b
commit
c9272c9218
@ -27,7 +27,7 @@ def stamp_value(workblock, stamp):
|
|||||||
value = 0
|
value = 0
|
||||||
bits = 256
|
bits = 256
|
||||||
material = RNS.Identity.full_hash(workblock+stamp)
|
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):
|
while ((i & (1 << (bits - 1))) == 0):
|
||||||
i = (i << 1)
|
i = (i << 1)
|
||||||
value += 1
|
value += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user