medium10 pts · first answer countssmart-contract-security
Random winners on chain
A lottery picks a winner with uint256(keccak256(abi.encode(block.prevrandao, block.timestamp))) % players.length. What is the problem?
A lottery picks a winner with uint256(keccak256(abi.encode(block.prevrandao, block.timestamp))) % players.length. What is the problem?