PoolTogether 3.0
HomeAppBuilder
v3.4.0
v3.4.0
  • ✨Introduction
  • Resources
    • 📡Contracts
      • Ethereum
      • Celo
      • Matic
      • Tokens
    • đŸ•šī¸ Apps
    • 📈Subgraphs
  • Protocol
    • 🌐Overview
    • 🏆Prize Pools
      • âš–ī¸ Fairness
      • đŸĨŠStake Prize Pool
      • 📈Yield Source Prize Pool
    • 💸Prize Strategies
      • 🤑Multiple Winners
    • 👨‍🌾 Yield Sources
    • đŸŽŸī¸ Tokens
      • đŸŽŸī¸ Ticket
      • 🎁Sponsorship
    • 🎲Random Number Generator
      • Blockhash
      • Chainlink VRF
    • đŸ´â€â˜ ī¸ Loot Box
    • 🐋Pods
    • 🖖Prize Splits
    • 🛑Blocklist
  • Governance
    • đŸ›ī¸ Overview
    • đŸ•šī¸ Controls
    • đŸ—ŗī¸ Example Proposals
  • Contributing
    • 📐Smart Contract Guidelines
  • Security
    • Risks
    • Audits & Testing
    • Bounties
Powered by GitBook
On this page

Was this helpful?

  1. Protocol
  2. Random Number Generator

Blockhash

PreviousRandom Number GeneratorNextChainlink VRF

Last updated 3 years ago

Was this helpful?

The Blockhash RNG uses a future blockhash as the random number. This is the least secure method of random number generation, but also the simplest and cheapest.

When a user request a random number their lock block will be the current block. Their request is considered 'complete' when at least one block has been mined since the lock block. Upon retrieval the last blockhash will be stored as the random number and returned.

Usage

A prize strategy can use a RNG service. No additional work is needed: the blockhash service is free.

🎲
RNGBlockhash