also I just verify your previous result (just like that). I was wondering why you don't put the offset in the hash?
You are viewing a single comment's thread from:
also I just verify your previous result (just like that). I was wondering why you don't put the offset in the hash?
The offset is figured out after the game.
offset = the random number - your guess. The person who was the close to the actual code plus or minus wins. So if the number you guessed was -one or +one off you'd win even if you didn't guess the correct number. So there's always a winner every game. if the offset was zero, then they guessed the exact number.
So since the offset is based on users comments, it's impossible to include it in the hash beforehand. Basically the script picks four numbers from random.org and creates a hash with salt and game number to make it nearly impossible to brute the actual number based on the fair hash. So to prove numbers are created before hand and I don't control the winner.
Hope that makes sense.
yeah totally. I guess I forgot or didn't really understand what the offset was. Great use of crypto here.