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

When a company goes quiet online, search is often the first “no”

Partners rarely start with a phone call anymore. They type the company name. If almost nothing readable shows up—no plain page, no short series of posts on accounts you control—the deal often cools…

  • Companies must maintain consistent online presence for potential deals.
  • Multiple responsibilities assigned to one person often lead to neglect.
  • Creating clear, accurate content offers sustainable online visibility.

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.

Lazygit's M Key Hides Four Merge Options — Here's the Git History Each One Leaves Behind

I use lazygit daily, and for a long time M was just "the merge key". Press it, pick the option, the merge happens. It took me a while to actually slow down and pay attention to the options in the…

  • Pressing M key in Lazygit reveals four merge options
  • Each option alters the merge graph and commit history differently
  • Regular merge (fast forward) creates linear history without merge commit

More from Saturday 12 September →