NOTICE: Flashcoin is now live on MoneyPot for wallet and gaming.
Logo Moneypot
Bet #28246427
User profitbliss
Kind Simple_dice
Coin BTC
Wager 0.13 bits
User Profit 0.11 bits
Investor Profit -0.1119248000 bits
App Profit 0.0012832000 bits
MoneyPot Profit 0.0006416000 bits
House Edge 2.47%
Total Expected Value -0.32080000 bits
Provably Fair
Client Seed 1029449799
Server Secret 1a329f2e923004434dd1e911eec1bbca8242dba85dde9ec64bedb5fc94de6c42
Server Salt bb29609c70a13944a03dde3d2828d4f3291569fde6814ef447e66dbf53929bee
Server Hash 0e266125767b117ee825f64507c1234bce43d8b163081307e0bfeced8a7f7319
Raw Outcome 1366625561
Method SHA-256
From To Value Probability Expected Value
0 2269031222 0.24 bits 52.8300% 0.12679200
Provably Fair Outcome

MoneyPot uses a Provably Fair algorithm that calculates raw outcomes from generated SHA-256 hashes. The Bet Hash is generated from the resulting hash of two unique hashes, the Server Seed and the Server Salt. The Server Seed and the Server Salt are both unique 64 character strings.

The Raw Outcome is based on a combination of the Server Seed and the Client Seed. After both are hashed together with SHA-256, we trim the resulting hash of the two to the first eight characters and then converted to an integer using Base16.

$outcome = intval(substr(hash('sha256', $serverSeed . $clientSeed), 0, 8), 16);

Javascript (cryptocoinjs / sha256)

var output = Number.parseInt(sha256(serverSeed + clientSeed).slice(0, 8), 16);