-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi,
'09184'30918'0324918'093248'09124: > ### Expected behavior: Deterministic calculation of mathematical truth on > any kind of system and especially Qubes. > > Pi Black Box Testing: > Mathematica: > > N[Pi,10^n] > Hash[%,"Adler32"] > > or (in one line) > Hash[N[Pi, 10^6], "Adler32"] > > 1. Calculate the digits of Pi up to 10^n. > 2. Calculate a hash > 3. Do this on different machines and you should find always the same hashes. You made a small error here. You hash a Mathematica expression instead of a defined binary representation of the value. Therefore Mathematica hashes some internal representation, which don't need to be machine independent. I did not find a documentation of what exactly Hash hashes if you give it some expression. But for example the documentation of DumpSave (see [0]) clearly states that it's not system independent: Files written by DumpSave can only be read on the same type of computer system on which they were written. So try again with something like Hash[ToString[N[Pi, 10^6]], "Adler32"] This will result in 1477199102 (tested with Mathematica under Windows). You can also verify it without Mathematica, for example using [1] and Ruby: $ pi 1000000 | ruby -rzlib -e 'puts Zlib.adler32(gets.chomp)' 1477199102 $ > Let's assume that here all is right, in theory there might be some > hash collision took place. A hash collision would not change the determinism of the result. [0]: https://reference.wolfram.com/language/ref/DumpSave.html [1]: https://packages.debian.org/jessie/pi -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEqieyzvOmi9FGaQcT5KzJJ4pkaBYFAlg7bDMPHGh3NDJAaXBz dW1qLmRlAAoJEOSsySeKZGgWtJIP/js7l7U39gpAurouRhNzT4aiqH3shp74YCM7 NCHhTqUyIZOmQZ0bxflBQ65aN4HcLCt20erOeQ28uPqMngbwcmiZ6c/fl/ifsqUp +Oh6r5aN0A/if4imVi0zQBoydPxj4ueb7muBxkVKB4ZO60kO0N47+hjjbyI/BVhP dqbISbeLRExS46mSTL7Xp3HNGLFlnkdos1oWii9FxZdeBscOFI0yy6w8cYl8XVGK bp3fs6hFf6dM+bK1BYanIIIt1FhlG+eVd+Yoin1F33/sH2HZyYwjmZ1yglfhccJJ XHvcZR9XM6ijOIYOJT4pPK51waRRRtofHYHDf2p+qy2/rBVcI2pE/c/FeUc7FXZC o186giNcpvtoUdzOceG7qrihA0Sydob154LeVgW7b8+zy84/twGBr3wZ1O90K4p0 TLLHyy5ttmPD9Wzjd4GP5lIH+gSyI11r7/Fy4/knwi2nTK2CE+8ydHX8ztL4R+vL YBQ29NxcCZyFSUSIoAGfItrZ23Hr9mCBw3Qfm+FOVhLWHbsfmgJJV+RXVhi9TsS0 ysnlThdX0PFofKlbd5Xxha5qMaw3kqhBn7RlvUI/wLUweR2TuVj4ycIKUupi0LbI pVXsgxYYKXVe49Pz5N2VsJQ+J8nc21drPHSfsXFRZrKwoFEmIH/vveKygcnKbLYd iCW/IwwC =8idc -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "qubes-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-devel/b6d9b493-80a5-398d-be9b-2444f1dfedfa%40ipsumj.de. For more options, visit https://groups.google.com/d/optout.
