I'm reading through the accepted answer to this question on securely creating random numbers for multiplayer blockchain-based casino games. I don't understand the reason for step 4: "Users send their hash to the contract, along with ether greater than or equal in value to the value of the random number."
Why should the amount they send have to be greater than or equal to the value of their random number?
Is there anything wrong with each player simply sending in their "bet" (i.e. the amount they choose to gamble), and forfeiting it if they refuse to reveal their N
? The amount they gamble can serve as their security deposit: they simply drop out of the game and stand no chance of winning the jackpot (consisting of the sum total of all players' bets) if they don't reveal their N
.