Insecure Source of Randomness | Hack Solidity (0.6)
Channel: Smart Contract Programmer
Date: 2020-08-01

There is no easy way to generate a random number inside Solidity. You might think of using block hash and timestamp for the sources of randomness. But hold on! In this video I will explain how they can easily be computed from other smart contracts.

#Solidity #randomness #hack #blockhash #blocktimestamp

Code: https://solidity-by-example.org/hacks/randomness/

References
https://github.com/ethereumbook/ethereumbook/blob/develop/09smart-contracts-security.asciidoc
https://solidity-05.ethernaut.openzeppelin.com/

Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io

Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com