Post
Topic
Board Gambling
Re: SatoshiDICE.com - The World's Most Popular Bitcoin Game
by
smickles
on 23/03/2013, 19:10:20 UTC
Excuse me, but how is Random Number Generator of SatoshiDice.com works? What is maximum number? 64001?
iirc, the random number generation of satoshidice is done by taking the trailing few numbers of a hash of your transaction which sent the bet and plus the secret number.

Quote from: SatoshiDice.com
The lucky number used to determine the winner of games is simple. It is simply the first bytes of hmac_sha512(secert,txid:out_idx). That would be the secret string as the key and the transaction ID of your bet transaction as the data.