Skip to content

Conversation

@remedcu
Copy link
Contributor

@remedcu remedcu commented Apr 14, 2020

Created a new RNG Generator with a Fallback using two of our previous smart contracts:
https://github.com/kleros/kleros-interaction/blob/6ec7f11/contracts/standard/rng/BlockhashRNGFallback.sol
https://github.com/kleros/kleros-interaction/blob/cf43218/contracts/standard/rng/BlockhashRNGFallback.sol

Instead of taking the previous hash like the latter one, we take any one of the last 256 block hashes of the mined blocks. But avoiding the former's vulnerability of allowing anyone to manipulate a randomNumber earlier than 256 blocks.

Copy link
Contributor Author

@remedcu remedcu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested have been done.

@remedcu remedcu requested a review from clesaege April 15, 2020 00:56
@clesaege clesaege merged commit e7020ee into kleros:master Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants