Merge pull request #5788 from ethereum/remove-rnd-faq

[DOCS] Remove FAQ item on random number generation
This commit is contained in:
chriseth 2019-01-14 14:12:35 +01:00 committed by GitHub
commit 185d221909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,15 +77,6 @@ otherwise an exception is thrown.
Advanced Questions
******************
How do you get a random number in a contract? (Implement a self-returning gambling contract.)
=============================================================================================
Getting randomness right is often the crucial part in a crypto project and
most failures result from bad random number generators.
If you do not want it to be safe, you build something similar to the `coin flipper <https://github.com/fivedogit/solidity-baby-steps/blob/master/contracts/35_coin_flipper.sol>`_
but otherwise, rather use a contract that supplies randomness, like the `RANDAO <https://github.com/randao/randao>`_.
Get return value from non-constant function from another contract
=================================================================