I've not been able to figure out how to verify the server seed hash. I tried following the instructions on site, but it doesn't work.
What am I doing wrong?
Here's how the provably fair tab looks:
I had to inspect the element to figure out how many spaces were each side of the comma - it seems to be one both sides.
I wrote some PHP code to try to run the code you gave for the server seed hash:
// before playing, I was given a hash: 571FC0AE8E8C88567131A20B1480CBCD54F89E46B3218E70CE715176917672F1 and set a client seed: 54434
//
// after playing, I was given this:
//
// BET ID: 31337449
// USER: dooglus
// TIME: 2014-12-27 01:46:33
// Roll: 44.27
// GAME: 50.50
// BET: 0.0001
// MULTIPLIER: 2.000000000
// PROFIT: 0.0002000000
// Server Seed HASH: value="571FC0AE8E8C88567131A20B1480CBCD54F89E46B3218E70CE715176917672F1"
// Server Seed: value="230554171"
// Client Seed: value="54434"
// SECRET: value="b607147d108fd511516110602074c6a8"
//
// the page says that the server hash is generated like this:
// SHA256 ( $ServerSEED .' , '. $SECRET )
// I guess that's PHP:
//
$ServerSEED = '230554171';
$SECRET = 'b607147d108fd511516110602074c6a8';
print hash ( 'sha256', $ServerSEED .' , '. $SECRET );
// but that prints ee15a143cf6db5d129d1337ed2392370f3724448ac79c4d5d420e086226747e4 - so how do I get the 571F hash?
?>
but it doesn't work.
What does?
Edit: and where can I find the definition of the MersenneTwister class?
Edit2 [4 hours later]: I just found this on a different page:
It says you use MD5 and ' | ', whereas the other page says you use SHA256 and ' , '. But that doesn't seem to work either - you have two contradictory explanations, and they both seem to be wrong. Has anyone ever verified a single roll? If so, I'd like to know how!
Edit3: the published server seed hash is too long to be an md5 hash. I tried various ways of combining the server seed and the secret with sha256 but none worked:
'230554171 | b607147d108fd511516110602074c6a8' -> 004edfda331e33c22602ce91ca8318c730c30d27ca4f62c97beec78fe1083c7b
'b607147d108fd511516110602074c6a8 230554171\n' -> 00ee91ea93088cfbd3208f4ace8ae2942dad95cd94f68ba8b33477f449664328
'230554171 | b607147d108fd511516110602074c6a8\n' -> 012c331d2d11204b00d4db95dca95fa84cbfea627e6f678bbd99362aa2ea8f59
'B607147D108FD511516110602074C6A8 230554171' -> 0164d7593eab55c5833a1bdfaf4b28d41b1188e6d4d626a51872fdc34c244785
'B607147D108FD511516110602074C6A8,230554171\n' -> 01c38945cc9b3c6e0bc1edf35bcb7f414867273c7ff2bb95b60813cc03973071
'B607147D108FD511516110602074C6A8 230554171\n' -> 036c45d587f242a6d270ea880134ea03b4858bbf8c61d540491fcbdf10eee502
'b607147d108fd511516110602074c6a8 | 230554171' -> 0b352ebbab90747867252d5c573582956f58ff8d72c4a6f099857b2743317c3d
'230554171 |B607147D108FD511516110602074C6A8\n' -> 0b479144a4a7fd790488dd799ef8acb05b5f67ae575e4403b23ab896119f2b92
'B607147D108FD511516110602074C6A8, 230554171\n' -> 118af2fac155359652af0b51da047c7da9c1683d7413a131e5faa6973e64a1c5
'230554171, b607147d108fd511516110602074c6a8' -> 11c57370af92273a8c1559b99462efff63844f347eeb3d90d403233d3d1eac6a
'B607147D108FD511516110602074C6A8|230554171' -> 1d97a4be3a527c13a85a656d1cdc261d80fa77ca31a84fb82f3aff146e2faa5d
'230554171 | B607147D108FD511516110602074C6A8\n' -> 1fb1c72a30635bdf124d9795c4980c75b42864840d2b84ae3213298ea2ced817
'230554171 b607147d108fd511516110602074c6a8\n' -> 224cefe4a74855ca5f269a4ea2414283929a70fc92d1ab2927564245b6cf66c2
'230554171,B607147D108FD511516110602074C6A8' -> 2fed90a5fe853dd3374001ef4dbe9951ff2ace3fedebfa0645143ca55d5db786
'B607147D108FD511516110602074C6A8| 230554171' -> 345959532854b3faff024ad418480e799b26719117207b3f988c7ca656c51351
'b607147d108fd511516110602074c6a8| 230554171' -> 367440a4eb257ee1f912d03a57442325a8ad9ec53629b8e02d0b54a8dca7c83f
'230554171 , B607147D108FD511516110602074C6A8' -> 36b2f30adafafad59ae5b2f4cb3429f27b4f6d1496c434b416febefbfefc7248
'b607147d108fd511516110602074c6a8|230554171' -> 3861373f819371dc244e8aa28f3c6e3a5c9885f4b40f533f398ec3a1fb9656de
'230554171 B607147D108FD511516110602074C6A8' -> 3b180b9afa141bc78817694ffddff2eb3801f1018f86902e310bf84f859b461f
'b607147d108fd511516110602074c6a8, 230554171\n' -> 404af25847dd5501e9705e5a674e9a969c94b654050e12f426c120c10a68649e
'b607147d108fd511516110602074c6a8 |230554171' -> 4d2eb470bf9d1132a2933ef995327d6c7d681e7a33dbb71d920f87f5949a8df8
'230554171 b607147d108fd511516110602074c6a8\n' -> 501685d6c9b9a45f774e5efe49963d3a17de736c8292fca28128822fa3e6c800
'230554171 ,B607147D108FD511516110602074C6A8\n' -> 503ff956d0aee6010dd3f5bddad34fa1bdbc6c587594ae4e3270a3cd23dbb92d
'B607147D108FD511516110602074C6A8, 230554171' -> 52daeae74d0c01552993de2a0f8f4c734391f91ac3d276d7e2b27c2285601afb
'230554171 ,B607147D108FD511516110602074C6A8' -> 554c954cde512f3b9406eec04d0680b43c8e78dff7d83f54f9808a3f7a28303f
'b607147d108fd511516110602074c6a8 230554171' -> 559f41f51b69af832b672dffcfa6d19326e91fb70a4ff0a1687cd3792ed87d40
'230554171 , B607147D108FD511516110602074C6A8\n' -> 5928db31d93421e0f73ce11a950e284dc5a8f26bd8da2815df4fc97021e0c96d
'230554171b607147d108fd511516110602074c6a8\n' -> 5c8c480b243cc2ee81c9a7b235a17383b1487dbcc9d4fd8322d63059410037d4
'B607147D108FD511516110602074C6A8230554171' -> 5e4fc587f4deae9df3838ff28bb28fbbdaf18ef9b10d5ab99c2e26f537bd13bc
'230554171,b607147d108fd511516110602074c6a8' -> 6106bf76cb677c162e1716471262a91add529dc4cb757e1a789d9c70b1ffed7a
'230554171 b607147d108fd511516110602074c6a8' -> 61d61f2f28a00dee748a7eb58938ee87e64ffc63cfc3c5d0742a940dd755a4b1
'230554171,b607147d108fd511516110602074c6a8\n' -> 63f22c8999e0310d5fba1580957f17ec4c4c1e3fb8d7e3c1a483971684d9fa62
'230554171,B607147D108FD511516110602074C6A8\n' -> 77952548b737eb92daa798ed2394deabcef1796ffd1511975f4f87dfd1add778
'b607147d108fd511516110602074c6a8 ,230554171' -> 77f74082801efef17507abfc0ccf2d30ac89ecadba85b7fd596a1734e8fe4572
'B607147D108FD511516110602074C6A8 | 230554171' -> 8b22ac45d3d8e033d779753bc318f0187675edffd11a4b4deda396320ec43fb4
'230554171 |b607147d108fd511516110602074c6a8\n' -> 94295ac66b88dd6703bdd560501d2ab360081d0ba6f4d6f83388c3ff0678fe94
'b607147d108fd511516110602074c6a8|230554171\n' -> 948379649795f10dc46504a6081e178d9e483ca5a9b0ffe2a151af3f15fceda7
'230554171B607147D108FD511516110602074C6A8\n' -> 9769f5fe5993b8a4768fd55f7dd5cdf3c3dbd152ebe7d066c06a2c486e8fc5d4
'230554171|B607147D108FD511516110602074C6A8' -> 9871a4b2278a557da949d335bbb5343db9042e7fd57d20f96df6443df295120f
'b607147d108fd511516110602074c6a8230554171\n' -> 9a1b037d23ac3c8cb520e63ddb6fbe0a1dc5b88eebfe3468385d298026ec0425
'230554171 , b607147d108fd511516110602074c6a8\n' -> 9a7e46c91e1043053eaffac7fb5cfa2f243ac8375e75d062afd0926f37eb227e
'b607147d108fd511516110602074c6a8 |230554171\n' -> 9c4aaf68130789a4953cc12162b5ddb87a5588ba07b5c028b8494fd452a90c83
'B607147D108FD511516110602074C6A8|230554171\n' -> aae49ee8c6a80a5e1492dc350641f3bb60b5f4181599f5b52a28f449f3958a5e
'b607147d108fd511516110602074c6a8 | 230554171\n' -> ab18a3a8885e726eeee1a751e42ef1825ffdf02d5e2fddb5c1b7dc467d42f3cd
'230554171B607147D108FD511516110602074C6A8' -> ab38a4b859fffc048d5362005a132f4046327e9542d4ace0c56595c16965bdef
'B607147D108FD511516110602074C6A8 230554171\n' -> b17a884ae8fdba080601b11ed9b015dbfcc43cfbfb33e870e052eba6b39ca663
'230554171 |b607147d108fd511516110602074c6a8' -> b1a0b38bf0b79b3764c0a4c3c80da4b24b288fa9ace7719b874f37e343803df1
'230554171|B607147D108FD511516110602074C6A8\n' -> b3e0d38d8e9a6d0421608f8dbfb5d521ce8a2f508f7113c8c663c0ea7d2a45d5
'b607147d108fd511516110602074c6a8,230554171\n' -> b3ff0af81fe78fffded0cd302338942c910461551afaaf9211ba4a1cdb8fcbf3
'230554171|b607147d108fd511516110602074c6a8' -> b43dc5d06702b4e30e30355077ef17f097815d4f17c903a5b3ee6405caeb5692
'B607147D108FD511516110602074C6A8 | 230554171\n' -> b5673bb5e3f12965e6c8837b08bf32583e6ed0f94714596fab95aabdd00b2e9e
'B607147D108FD511516110602074C6A8 , 230554171\n' -> b5cd50f7c23d8602fa6be9ebf770ecd22a7d3fb64dde6d0da10bbc2e51a2f400
'B607147D108FD511516110602074C6A8230554171\n' -> b7db7b6dac7da49cb5986399bec61611956cea90bbac8575375a9b3e3cdcf8c8
'b607147d108fd511516110602074c6a8| 230554171\n' -> b937240ee8d037ecccf15f6bec5e9d5d35338ef0f66079e4773195fc350734a7
'B607147D108FD511516110602074C6A8,230554171' -> b998b2b280bd0889aa59063dd8d6f74a8de985451be64a01807a0debbd1ebdca
'230554171b607147d108fd511516110602074c6a8' -> ba78dfbf3ce285c689dbbf69a136501394b56f3fdf80d56457fb0d9f5ec2be49
'230554171, B607147D108FD511516110602074C6A8\n' -> bfdbfb2edfc9e7b64782b5cf602b8ea851c51a579827088e66365294022c2c8c
'230554171| b607147d108fd511516110602074c6a8' -> c7af4ecb606077f6e2dcf0cb846762ef3c771a402426b4f09e12ea58529d52dd
'230554171 B607147D108FD511516110602074C6A8' -> ca42336f43a4056e15c3933752250f3e1fc78dba4ebf1e1330d4bb2f798e18db
'230554171 B607147D108FD511516110602074C6A8\n' -> cc683284e55b3cc9fabbf9d120c2e5455f6d46d81170eb81213a09e927dbe18d
'B607147D108FD511516110602074C6A8| 230554171\n' -> cdd4cad0d28198a6a35e45eff6f469d9a77c539a2de20ae21f06f4a1828dcb1b
'b607147d108fd511516110602074c6a8 ,230554171\n' -> ce0d62dd305678bcf858c31fe249d2bfa51898dab1ccdbf839ac5e306b518b4a
'230554171 | B607147D108FD511516110602074C6A8' -> cf38f2d662781236d3aa43a537f62034b32d8205db22c677fe3388abd1ef891e
'b607147d108fd511516110602074c6a8 , 230554171\n' -> d20f024af0b408fba0008d6e36f35fa6f54cf77c37972e0369b7459285c02385
'B607147D108FD511516110602074C6A8 ,230554171' -> d2157544d35a9eb96e67443a32773b43fe168789fef744f70ffd43f38b8713aa
'230554171 ,b607147d108fd511516110602074c6a8' -> d2b9888445a4bda68cf6e1096d5fecba4b3386bb9665ff8b9e7d5279b36b26f0
'B607147D108FD511516110602074C6A8 , 230554171' -> d3452e0ee6dbe3607def1057327c948fcd8eda247f94496a27300dfc6f2ae147
'230554171| b607147d108fd511516110602074c6a8\n' -> d665fe1909e3cff7e516ba36880fa465669c75100212208b471d93d1701018eb
'B607147D108FD511516110602074C6A8 230554171' -> d6c11ec05bf3c67861e8b265806a34050491f64bbca44b908a45b17cc1b345f6
'230554171 B607147D108FD511516110602074C6A8\n' -> d6d658b516c6518a277348c491401058c401728a0894c794fcc9bf763fc9fd98
'b607147d108fd511516110602074c6a8 230554171' -> e0a74615ef14a79f7dbc4b7e39c1dcbe036ca25d4bcfe3f8fe0c3d94ac04471d
'B607147D108FD511516110602074C6A8 ,230554171\n' -> e334cdc3deb5995b21e8a7b658592b6c20b70c6d2b1ff7f56cab3aeeddb8aa7c
'b607147d108fd511516110602074c6a8,230554171' -> e3ac92991afdd6e0503b1d89916e7f7d4da2377466edf08cfe6a5b56efacb947
'230554171, B607147D108FD511516110602074C6A8' -> e3cbe23eb1a393e7ac29866cc5e471bc75f725b64b3f57da3a81f71f626302be
'230554171 b607147d108fd511516110602074c6a8' -> e680141b5b920fdc2516c1aa85490bd2a799bcd2b3f77f1c4b05ff339fc32023
'230554171| B607147D108FD511516110602074C6A8\n' -> e69aa223a45e7a644cf10473c19d41f17b0614a3405493fd2ede1eeec4bda691
'230554171, b607147d108fd511516110602074c6a8\n' -> e6fc58b96359c485d6f5a381b71b7ee9be6f2037a8328bbaa3e679211fc66112
'b607147d108fd511516110602074c6a8230554171' -> eb6e9f336c76b448826a2cec07320fb5a470767a3debb852ae7bd9b5f47ab3a4
'230554171|b607147d108fd511516110602074c6a8\n' -> ebd4365c2dcefc9fa599bcd326f63d7fd956fd78d1569f100199a65d6df92b23
'230554171 , b607147d108fd511516110602074c6a8' -> ee15a143cf6db5d129d1337ed2392370f3724448ac79c4d5d420e086226747e4
'B607147D108FD511516110602074C6A8 |230554171' -> ee1d8f648997e235838aaf89319b4f99092069f423632eee239e496cc1e80ebf
'b607147d108fd511516110602074c6a8, 230554171' -> f047d327f50f44629f1486c55e389d28bac26e4cf3d7d61af38d930c9c4b21a3
'230554171 |B607147D108FD511516110602074C6A8' -> f82e502d8c184ec0f60323e2ecd6a71a243956efda2e2e8683f006d2a9a2b10d
'B607147D108FD511516110602074C6A8 |230554171\n' -> fb0a11e38727472b5cc07613c12dcd91f1a7bef759c5a93a61644de86d27ad28
'230554171 ,b607147d108fd511516110602074c6a8\n' -> fb91c73ee2cfc83528fa36525456827d854e6bebd9b3e4ee16877ce257b414b6
'b607147d108fd511516110602074c6a8 230554171\n' -> fd011f6b86d9f79e0c408f185b9c2152ea8403e724182348a1f6b7145132461f
'b607147d108fd511516110602074c6a8 , 230554171' -> fe685ecdcd76f374801fbf8d5dacdfce22b68130b6b864cd48df88c1eba5eec6
'230554171| B607147D108FD511516110602074C6A8' -> febe3a92ac760126ff2b75ffec70385757dc0cce6c57c33b66a42ed31c117511