Provably Fair

offer verification which allows our users to check the integrity of every roll and confirm they are not manipulated. Our random numbers are generated through the use of two seeds, a server seed, and your client seed. The server seed is created before you specify your client seed, ensuring that a server seed purposely in our favor cannot be generated. Together, along with the nonce (# of bets made with seed pair), the seeds are used to create a provably fair roll number within the 0-99.99 range.

Seeds

In the provably fair tab, users can change and verify seeds used. To do so, click underneath "Client Seed" and type whatever you please. Before you specify your own seed, you are shown the SHA-256 hash of the server seed that will be used alongside whichever seed you pick. Changing the client seed used will also reveal the previous server seed, which you can then verify was the seed we hashed and showed to you.

Roll Numbers

To create a roll number, uses a multi-step process to create a roll number 0-99.99. Both client and server seeds and a nonce are combined with hash_hmac('sha512', $client_seed-nonce, $server_seed) which will generate a hex string. The nonce is the # of bets you made with the current seed pair. First five characters are taken from the hex string to create a roll number that is 0-1,048,575. If the roll number is over 999,999, the process is repeated with the next five characters skipping the previous set. This is done until a number less than 1,000,000 is achieved. In the astronomically unlikely event that all possible 5 character combinations are greater, 99.99 is used as the roll number. The resulting number 0-999,999 is applied a modulus of 10^4, to obtain a roll number 0-9999, and divided by 10^2 to result a 0-99.99 number.

How to Verify

You can use a third party tool to verify roll numbers or use the following PHP script that recreates the process described above. It will output your roll number.

public function roll($seed, $key, $nonce) {
	$key = "your client seed"; // excluding the dash and the nonce!
	$seed = "your server seed";

	// bet made with seed pair (excluding current bet)
	$nonce = 0;


	$hash = hash_hmac('sha512', $key . '-' . $nonce, $seed);

	$index = 0;

	$lucky = hexdec(substr($hash, $index * 5, 5));

	while ($lucky >= pow(10, 6)) {
		$index++;
		$lucky = hexdec(substr($hash, $index * 5, 5));

		if ($index * 5 + 5 > 128) {
			return '99.99';
			break;
		}
	}

	$lucky %= pow(10, 4);
	$lucky = sprintf('%.2f', bcdiv($lucky, '100', 2));
	return $lucky;
}