sha256 verification takes 2 arguments:
salt
hash (Claimed hash)
We compare Claimed hash against our function of sha256(salt). If Claimed hash is identical to our own sha(salt) function then Hash equals will be displayed.
Otherwise Hash does not equal will be displayed.
Game outcome verification takes 4 arguments:
srand (ServerRandom)
prand (PlayerRandom)
randmax (RandomNumberMax)
outcome (Claimed Outcome)
It performs the calculation of: (srand+prand)%(randmax+1) and compares it with the Claimed outcome
If it's equal then Outcome equals will be displayed.
Otherwise Outcome is NOT equal! will be displayed.
If both sha256 verification and outcome verification passed then the message Your game was provably-fair is displayed. Otherwise it displays Your game was unfair