Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to run a provably fair giveaway in 10 lines of code

Every giveaway or raffle eventually gets the same comment: "this was rigged." Usually it wasn't — but there's no way for anyone outside the organizer to check. The list of entrants, the moment the winner was picked, and the randomness behind it all happen behind closed doors. This post shows a different way: commit your entrant list first, then let the winner be decided by a value that doesn't…

To conduct a provably fair giveaway, you can use a few lines of code and a public randomness beacon like QBEACON. The process involves locking in your list of entrants before the random value is determined, preventing any manipulation. The entrant list is hashed and committed, then a random value from the beacon is used to select a winner. This approach provides transparency and trust, as anyone can verify the process without needing to trust the organizer.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Building Pune Pulse: a real-time 3D digital twin with an IDM/MOBIL traffic engine

I wanted to see my city — Pune, India — alive in 3D. Not a game with a fictional map, and not a navigation app tracking where I am.

  • Pune Pulse is a free Android app rendering Pune's road geometry and buildings.
  • The app uses IDM and MOBIL models for traffic simulation and rerouting.
  • Offline functionality is ensured without accessing OSM or using GPS.

More from Saturday 12 September →