remove unnecessary cast

This commit is contained in:
protolambda 2019-06-18 22:00:22 +02:00
parent 346e61dfeb
commit 060041945c
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 1 additions and 1 deletions

View File

@ -843,7 +843,7 @@ def get_shuffled_index(index: ValidatorIndex, index_count: int, seed: Hash) -> V
position = max(index, flip)
source = hash(
seed + int_to_bytes(current_round, length=1) +
int_to_bytes(ValidatorIndex(position // 256), length=4)
int_to_bytes(position // 256, length=4)
)
byte = source[(position % 256) // 8]
bit = (byte >> (position % 8)) % 2