Skip to content
Digital

Vista Golf

Live giveaways that draw from millions of entries in milliseconds, provably fair.

FairDraw is a custom drawing engine built for live, on-site giveaways. It's cryptographically random, publicly verifiable, and fast enough that the winner appears the moment the countdown hits zero.

Live demo: the real FairDraw math, running in your browser

128-bit seed

00000000000000000000000000000000

SHA-256

0000000000000000000000000000000000000000000000000000000000000000

Unit value

0.••••••

Entries

2,500,000

Winning entry

Drawing…

Hashing

Entries per draw
Millions
Winner in milliseconds when the countdown ends
Instant
Possible draw seeds (about 340 undecillion)
2¹²⁸

The challenge

Most draw systems were built for paper entries and a slow reveal. Vista Golf wanted live giveaways on the site, with a real-time countdown and a winner chosen on the spot from a pool of millions. Every draw also had to be fair enough that anyone could check it.

What we built

  • 1

    FairDraw

    When the countdown ends, FairDraw generates a 128-bit cryptographic seed and hashes it with SHA-256. It then maps the result directly onto the entry ranges instead of walking the pool name by name. Pools of any size finish in milliseconds.

  • 2

    Verifiable by anyone

    Every draw publishes its seed. A public verify-and-replay tool lets anyone re-run the math and land on the same winner. Nobody at Vista Golf picks the winner.

  • 3

    Entries as a business model

    Memberships that accumulate entries, first-month multipliers, a shop and cart with recovery links, and discount codes, all paid through Stripe. Klaviyo and Meta conversions keep marketing in sync.

  • 4

    Compliance built in

    A free-entry route with no purchase necessary, geo-blocking and per-region legal config, official rules, and a winners page. It's sweepstakes infrastructure that can stand up to scrutiny.

How it works

  1. 01Countdown endsScheduled live draw
  2. 02Seed128-bit cryptographic random
  3. 03HashSHA-256 → number in [0, 1)
  4. 04MapStraight to the winning entry
  5. 05VerifyPublic replay tool

The results

  • 01

    Live, on-site giveaways with a real countdown and an instant, on-screen winner.

  • 02

    Draws over millions of entries resolve in milliseconds.

  • 03

    Every result is independently verifiable, which builds trust into the product.

Technology

  • Next.js 16
  • React 19
  • Turborepo + pnpm
  • Supabase
  • Stripe
  • Klaviyo
  • Web Crypto / SHA-256
  • Vercel Cron
  • shadcn/ui
Next case studyPostShowA social network for live music, built on an ingest pipeline that absorbs millions of events.Read it
ingest · discovery-feed29 countries