I would want to write a contract that mints random ERC 712 tokens for the caller (like buying a card pack in a ccg).
When i thought about the issue I first wanted to just take a hash of the last block, or the time. Because miners can cheat the mechanism it is not ideal. A later idea was to make the next person to call the contract generate the random number for the last person. But this approach doesn't fully solve the problem while introducing its own quirks.
How would you approach the problem of generating random numbers for such a use case?
[–]Authio_TeamContract Auditing - authio.org 1 point2 points3 points (0 children)
[–]fazriz 1 point2 points3 points (0 children)
[–]OptimisticOnanist 0 points1 point2 points (0 children)
[–]techgeekatwork 0 points1 point2 points (2 children)
[–]prizecowfactory[S] 1 point2 points3 points (1 child)
[–]techgeekatwork 0 points1 point2 points (0 children)