mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove random FAQ item
This commit is contained in:
parent
051df31924
commit
dbe88755af
@ -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
|
||||
=================================================================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user