On Oct 17, 7:02 am, Michele <[EMAIL PROTECTED]> wrote:
> Hi,
> I write a simple encoder in python and Java; they do the same
> computations, with the same inputs
No they don't.
> however they won't produce the same
> output.
> Let me explain with code.
You have a strange understanding of the wor
Michele wrote:
> Hi,
> I write a simple encoder in python and Java; they do the same
> computations, with the same inputs: however they won't produce the same
> output.
> Let me explain with code.
>
> First of all, you need a test file for input:
> $ dd if=/dev/urandom of=test.img bs=1048576 coun
Michele:
> in Java this block has an hash which is different from the Python one.
Note that integer numbers in Python are multiprecision by default,
this may cause differences.
You can put some prints in various stages of the data flow (or
breakpoints for your debuggers, etc) to spot where the va