Why block.prevrandao Cannot Power Random Draws on Robinhood Chain
Robinhood Chain documents constant PREVRANDAO. Replace block-data sampling with a D20DAO VRF request, fixed application inputs and an authenticated result.
A compiling helper can still have the wrong source
A Solidity helper reads block.prevrandao and returns an index for a game level variant. A successful compilation would not make its output random. Robinhood's current differences-from-Ethereum guide states that block.prevrandao and block.difficulty return a constant and are not randomness sources.
The same guide warns against using blockhash as randomness. Replacing one block field with another is therefore not a sound migration. Start by changing the source and the application's execution boundary, rather than looking for a different block property to hash.
A hash does not fix a predictable input
Hashing a constant produces a deterministic value. Mixing in a public timestamp, caller address or application counter can change the output without establishing an unpredictable draw. A longer hexadecimal value is not evidence that the underlying source gained entropy.
Keep this distinction when choosing a client seed. Its purpose is to bind application context to the request. A seed is not a secrecy guarantee, and letting a caller try different inputs is not a substitute for a controlled randomness workflow. Define which application operation may request which draw before its result exists.
Replace an immediate answer with pending state
Suppose a level generator chooses one of eight templates. Its old function computes an index and creates the level in one transaction. A D20DAO request does not return its random result synchronously, so swapping the arithmetic expression is insufficient.
Design a start operation that fixes the level context, opens the request and stores its returned request ID. The application shows that level as pending. An authenticated delivery later stores the accepted word; a separate application step uses it to create the level. Keep the operation identity through those stages instead of treating each user refresh as another draw.
Fix what the index will mean
Record the template catalog version, its original ordered contents and the mapping parameters before requesting. Bind the intended context through the supported client-seed interface and retain the original manifest bytes with its commitment. Stop changes to that operation's template list while its result is pending.
A valid random index cannot establish that the application used the promised template order. The consumer must preserve that association. Use the documented mapping for one selection rather than inventing a modulo formula, and keep the request's mapping with its eventual accepted result.
The round is fixed from the request timestamp
Robinhood Chain uses no Arc-style epoch publication. Its coordinator binds each request to the first drand evmnet round scheduled at least three seconds after the request block's timestamp. The coordinator verifies the assigned round's BLS signature and the operator's VRF proof against the request's fixed context.
That scheduling rule is about the included block timestamp, not when someone clicks a button. Send requests as normal transactions through the sequencer. D20DAO explicitly warns that requests forced through Ethereum's delayed inbox can carry an earlier timestamp and bind an already public round. Do not describe every possible request path as waiting for a still-unknown beacon round.
A pending result must not become a block-data draw
Authenticate the coordinator callback, resolve the expected request ID and store the word with minimal work. If delivery fails after proof acceptance, retryCallback delivers the same stored word. It does not authorize a new level variant.
If no proof is accepted before expiry, follow the documented refund rules and the application's predetermined failure policy. Do not silently fall back to block.prevrandao, blockhash or block.timestamp to complete the level. Represent missing or expired results explicitly; do not give a block-data fallback the same success label as an accepted VRF result.
A proof has context and remaining assumptions
Retain the request identity and transaction references with the frozen level manifest. Public replay can check the assigned round, signature, VRF and mapping; canonical receipts and historical implementation context still need verification. The linked review guide covers that process.
Robinhood requests rely on the sequencer for ordering and confirmation, on the stated independence of the sequencer and operator's VRF key, and on drand's threshold operators. The coordinator is upgradeable. Proof validity does not guarantee operator availability, an honest template catalog or that an application has disclosed every draw it made.
Review the migration at its failure boundaries
Use these acceptance cases when implementing the replacement. They describe review requirements, not executed test results:
- Model constant PREVRANDAO and confirm that no application success path treats it as a randomness source.
- Keep the level pending until its own authenticated result is recorded.
- Prevent template-order or mapping changes after the request starts.
- Document the normal sequencer path and delayed-inbox timestamp exception without claiming universal unpredictability.
- Retry failed delivery with the original word and never substitute a block-data fallback or a preferred new draw.