Abstract:Smart contracts are not only about ICOs - various lotteries, roulettes and card games are implemented in Solidity and can be played by anyone on the Ethereum blockchain. Autonomy of the blockchain limits the sources of entropy for random number generators. There is no common library that could help developers to create secure RNGs either. That is why it is very easy to mess things up when implementing your own random number generator.The talk features the analysis of the gambling smart contracts on the blockchain. As you will see many of them failed to implement a secure RNG which allows to predict the outcome and steal significant sums of money. At the talk the examples of wrong RNG implementations found in the wild will be demonstrated. The attendees will also learn how to spot problems in RNGs as well as how to build a secure random number generator under blockchain limitations.