Post
Topic
Board Gambling
Re: FairDice.biz: new bitcoin dice game; only 0,8% house edge; FREE BITCOINS!
by
dice64
on 11/08/2013, 17:05:19 UTC
HollowIP, account funded.
dice64, I have already implemented this. You can check client/server seed of roll by clicking "i" button on rolls history.

Quote
How is this provably fair when the mt_srand and mt_rand are pseudo-random and not guaranteed to give the same output on every system?
mt_rand will use seed provided using mt_srand. This is system-independed and will always return the same result.

The mt_rand function uses Mersenne Twister to generate its output.

Caution: Mersenne Twister is basically for Monte-Carlo simulations - it is not cryptographically secure "as is"
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html

Also, you dont show the user the secret seed, or its hash before the bet is placed. So you're free to generate any result you like, by creating any secret that matches the output you want.