So you are dissing the prng I made when I was bored in my Computer Science Class, and that I am not done with?
And did I ever say I was intending to use it for any sort of security?
Or even start to call it a csprng?
On another note, I had designed this for speed, not for security. Turns out, even with the most heavy focus on speed i can muster, isaac still beats it out.
I actually find this fascinating: lets compare natman3400's coding skills to the famous xkcd comic site. I presume that xkcd #221 (http://xkcd.com/221/
) represents the absolute limit of stupidity that is achievable in the USA. Anybody even little more stupid would not be allowed to graduate.
With the above code as a start I wrote a driver routine to recreate the sample of the same size as the original.
return 4; // chosen by fair dice roll.
// guaranteed to be random.
for (i = 0; i < 4913052; ++i)
Now just a quick compilation and another test:
B:\>cl -nologo driver.c
B:\>driver > xkcd221.txt
B:\>zip -9 example.zip xkcd221.txt
adding: xkcd221.txt (deflated 100%)
B:\>unzip -lv example.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
4913052 Defl:X 19362 100% 12/07/2011 17:49 d5749aba example.txt
4913052 Defl:X 4778 100% 12/07/2011 18:48 60303b1d xkcd221.txt
-------- ------- --- -------
9826104 24140 100% 2 files
And this short test shows that natman3400 is over 4 times (19362/4778) less stupid than the absolute limit of stupidity possible while still graduating normal school in the USA.
On yet another note, it would appear that I messed up somewhere in that code that makes it start outputting all zeros after a while, haven't really tested it well yet.
I think I have fixed it, im running it through die harder now.
There are no more than 3 consecutive zeros in your example file.
People, please keep your bitcoins safe. Don't use Bitclip or any other product developed by somebody who was "bored in [my] Computer Science Class".