Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Tibia lottery setup guaranteeing fair results that cannot be tampered with, enabling people to host a Tibia lottery without anyone being able to fake or rig the results.

NotificationsYou must be signed in to change notification settings

tibiamaps/lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository containsa script that generates cryptographically strong random numbers.

A GitHub Actions workflow automatically publishes new random numbers on a daily basis (at 04:20 UTC). Since this script runs in the cloud and not on anyone’s local machine,it’s impossible to fake or rig the results without leaving a trace. To rig a lottery by producing unfair results, someone would have to edit the scripts in this repository and check in the changes, which would be visible in the Git history orthe GitHub Actions logs.

This setup guarantees fair results that cannot be tampered with, enabling people to host a Tibia lottery without anyone being able to fake or rig the results.

The commit that checked in the relevant scripts is420069a6555ed1435ffdbdce27c37c38b7464d3f. (Note the easy-to-remember420069 prefix.) There was one subsequent change to the GitHub Actions workflow — removing the ability to trigger it manually — incommit069420d66446b5e6cf5948667df7e4a8f84e348c. (Again, note the easy-to-remember069420 prefix.) If any of the scripts are ever modified further, that would observably alter the commit hash.

How to host a lottery

  1. First, decide how many tickets you want to sell. This determines which file inthedata folder to use. For example, to host a lottery with 50 tickets, you’d usedata/from-01-to-50.txt (which contains random numbers from 1 to 50, inclusive).
  2. Pick a future date, e.g.2042-12-25, and publicly announce this as the day you’ll draw the lottery winner.
  3. On that date, check the file in this repository. Once the script has finished running for that day, the file contains a line matching the date you chose plus a random number. That random number is the winner!

About

Tibia lottery setup guaranteeing fair results that cannot be tampered with, enabling people to host a Tibia lottery without anyone being able to fake or rig the results.

Resources

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp