Post
Topic
Board Gambling
Re: FairDice.biz: new bitcoin dice game; only 0,8% house edge; no minimum bets
by
dice64
on 11/08/2013, 16:35:59 UTC
Zaih, the provably fair verification will be available soon.

Does this mean you will make the method available soon, or you will implement it soon?

From your site.
Quote
$server_seed = "SERVER_SEED_HERE";
$client_seed = "CLIENT_SEED_HERE";

function str2int($str) {
   $int = 0;
   foreach (str_split($str) as $char)
      $int += $char;
   return $int;
}

mt_srand(str2int($server_seed . $client_seed));

$roll = mt_rand(1, 6);
echo "Roll result is " . $roll;

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?

Also neither the "server seed" or "client seed" are ever shown to the user.