HollowIP, account funded.
dice64, I have already implemented this. You can check client/server seed of roll by clicking "i" button on rolls history.
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.htmlAlso, 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.