Skip to content

Commit

Permalink
updated randomness to include Chainlink VRF (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC authored Dec 22, 2020
1 parent 71fcefc commit b014203
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entries/SWC-120.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Ability to generate random numbers is very helpful in all kinds of applications.

## Remediation

* Using external sources of randomness via oracles, and cryptographically checking the outcome of the oracle on-chain. e.g. [Chainlink VRF](https://docs.chain.link/docs/chainlink-vrf). This approach does not rely on trusting the oracle, as a falsly generated random number will be rejected by the on-chain portion of the system.
* Using [commitment scheme](https://en.wikipedia.org/wiki/Commitment_scheme), e.g. [RANDAO](https://github.com/randao/randao).
* Using external sources of randomness via oracles, e.g. [Oraclize](http://www.oraclize.it/). Note that this approach requires trusting in oracle, thus it may be reasonable to use multiple oracles.
* Using Bitcoin block hashes, as they are more expensive to mine.
Expand Down

1 comment on commit b014203

@PatrickAlphaC
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @here, it looks like the test failed to add this and I'm not seeing the PR added onto the site. Can someone let me know what was missed here? Seems like a small enough PR.

Please sign in to comment.