Provably fair randomness: how Chainlink VRF picks the winners
Why a random number on a blockchain is hard to get right, how Chainlink VRF solves it, and how you can check every draw yourself.
Why randomness is the hard part
A draw is only fair if nobody can predict or steer the result. On a blockchain that is surprisingly hard: everything is public and computers are predictable, so a smart contract can't simply "roll a dice". Numbers that look random, such as the time or the latest block, can be seen in advance or nudged by the people who produce the blocks.
What Chainlink VRF does
VRF stands for Verifiable Random Function. Chainlink is a widely used service that delivers outside data to smart contracts. When a Reinvote round fills, the contract sends a request to Chainlink. Chainlink answers with a random number together with a cryptographic proof that the number came from that request and was not chosen or altered.
The contract checks that proof on the blockchain before it uses the number. If the proof doesn't match, the answer is rejected. Neither Chainlink, nor the people who run the network, nor the Reinvote team can pick a number that passes the check.
Where Reinvote uses it
Every random choice in a round comes from Chainlink VRF:
- Drawing the 8 finalists, weighted by the shares each wallet holds.
- Narrowing the finalists when they vote Continue (8 to 4, and 4 to 2).
- The final 50/50 pick between the last two.
- Drawing the five community winners.
What if an answer is late?
Chainlink usually answers within a minute or two. If no answer arrives within an hour, the request can be sent again. Anyone can do this, and the site's own automation does it right away. A late answer to an old request is ignored, so a round can never be drawn twice. After three free retries, only the wallet that deployed the contracts can send more, which protects the randomness budget from being drained. That wallet can only resend the request: it can't choose the result.
How to check a draw yourself
Every request and answer is a public transaction. On a round's page in History you can open the VRF proof, and on Arbiscan you can read the request and fulfilment events of the randomness contract. The step-by-step guide to checking the contracts yourself shows where to look.