Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
fix getRandomBytes function bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoumout authored Sep 29, 2022
1 parent f753a10 commit 345afc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proposals/lip-0046.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ It is specified as:
```python
def getRandomBytes(height: uint32, numberOfSeeds: uint32) -> bytes:
randomSeed = H(height + numberOfSeeds)
currentSeeds = [seedObject for seedObject in validatorReveals if height <= seedObject.height <= height + numberOfSeeds]
currentSeeds = [seedObject for seedObject in validatorReveals if height <= seedObject.height < height + numberOfSeeds]
for every seedObject element in currentSeeds:
if seedObject.valid == True:
randomSeed = randomSeed XOR seedObject.seedReveal
Expand Down

0 comments on commit 345afc8

Please sign in to comment.