in reply to Creating custom hash of file

So people can check any code they give it would be good to have a standard test file. That is pretty easy to generate as part of your sample code by adding:

open outFile, ">", "test.txt"; print outFile ' ' x 65536; close outFile;

then change your open to open the test file.

You should also provide the correct calculated value so we know when the calculation is correct.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Creating custom hash of file
by 2ge (Scribe) on Mar 18, 2007 at 11:10 UTC
    testing avi/hash code is on page I gave a link. But Anyway, I did this:
    open outFile, ">", "test.txt"; print outFile ' ' x (65536 * 4); close outFile; #hash is: 08080808080c0000
    I know this hash technique is not strong, but I can't do anything about it. It is same as Media Player Classic is using.