Skip to content

documentation for fulfillRandomness #27

Discussion options

You must be logged in to vote

This is an AMAZING question.

You're right, the RNG could 100% return a random number of 0, however... the chance is very very very very low. We are initializing our random number to 0, so as a quick check to make sure we got a response, we check to see that the number we got isn't 0.

The is a 1 in 2**256 chance that we get 0 back, so it's highly unlikely to happen.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AlbertoSinigaglia
Comment options

@PatrickAlphaC
Comment options

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
2 participants