Skip to content

Why don't we use a straightforward approach to generate random numbers ? #53

Answered by PatrickAlphaC
TilakMaddy asked this question in Q&A
Discussion options

You must be logged in to vote

Summary

Tagging onto @alwayscommit's great link to this article, the long and short of it is that you're using a deterministic value (and you can't have a deterministic number if you want it to be random!) and giving the power to the miners.

Here is another breakdown I did on the Meebits Exploit where someone used this insecure randomness and got hacked! This exact exploit happens WAY too often! Please be safe!

More information

Additionally specific example is also susceptible to the reroll attack (someone should write an article on that) where you just keep canceling transactions until you get a randomness value you want.

But even if you design a method to get around that, let me paint y…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@jmhickman
Comment options

@TilakMaddy
Comment options

@TilakMaddy
Comment options

@alwayscommit
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by PatrickAlphaC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants