The hard way:The biggest hex number between 0000 and FFFF win.
Client Seed(Hidden for public): 5d509c8bfcb6834e6d240b53a41b52c311daa127a9acc7b909ba37dcf3360d00
Giveaway Seed (client seed Sha256): c9a8bfd5a60af5533b0da6ada2e5202318d92fddc4b2f948625467cbff4709b4
Sha256 tools:
https://xorbin.com/tools/sha256-hash-calculatorNow lets say 3 users join to the giveaway.
USERS - Post Date
UserA October 12, 2022, 05:39:50 PM
UserB October 12, 2022, 05:39:40 PM
UserC October 12, 2022, 05:39:30 PM
We can take that users data to make a string with the client seed, then take the last 4 digits from the sha result and se who is the winner.
5d509c8bfcb6834e6d240b53a41b52c311daa127a9acc7b909ba37dcf3360d00:UserA October 12, 2022, 05:39:50 PM
SHA256:
cb076f9ecbf7561c4714e44ea581266be975018278789653b7159dc2fddf9d40
Last 4 digits:
This way we have:
UserA 9d40
UserB b619
UserC dd39
If you aren't good with hex, then you can conver that result to decimal to verify who has the biggest number:
https://www.rapidtables.com/convert/number/hex-to-decimal.html9d40→40256, b619→46617, dd39→56633
That way we have a fair winner (UserC), then we only have to make public the client seed to let the people verify the result and send the prize.
The easy way:Choose a number between 1 and 1000.
Game result phrase:
The winning number of the "My Business" Givaway started on date 02/05/2022:10:40 is the number 472
Sha256:
aa529508f4f5b51ecc7948b26dd917883cd0b86c34356ee516ba156315f8dd39
If you only make public the sha256, that way users know the game will be not rigged.
Outro.I create this guide because i have seen a lot of giveaways in the past selecting the users from random.org or wheelofnames.com, and that isn't a fair way to select a winner because the organizer could roll multiple times the site until he gets the result he wants. So, i highly recommend to always provide a seed or a hash to make the game fair for all.
Update.As some users realize both ways could be rigged with collusion. And the way to make it 100% provably fair is to bring an element from the future, like the hash of the block number 100 from now and add that data to the string before the sha256 encryption.