CRC32

R

Roedy Green

Has anyone noticed if CRC32 is giving different results under JDK
1.6.0_10?

I use it to randomise PSA ads on my webpages. When I upgraded, all the
ads changed.
 
A

Arne Vajhøj

Roedy said:
Has anyone noticed if CRC32 is giving different results under JDK
1.6.0_10?

I use it to randomise PSA ads on my webpages. When I upgraded, all the
ads changed.

Since CRC32 is a well defined algorithm, then that would be a bug.

Arne
 
L

Lothar Kimmeringer

Roedy said:
Has anyone noticed if CRC32 is giving different results under JDK
1.6.0_10?

Not that I'm aware of but you can easily check that by writing
a testcase that compares the result of the CRC32-calculation
with the expected value and execute that with the different
VM you have installed.
I use it to randomise PSA ads on my webpages. When I upgraded, all the
ads changed.

Maybe something else changed that the input-values of the
CRC32-calculation changed.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
 
R

Roedy Green

Not that I'm aware of but you can easily check that by writing
a testcase that compares the result of the CRC32-calculation
with the expected value and execute that with the different
VM you have installed.

By Murphy's law, I suspect it would chew up at least a couple of hours
to track this down. In my case it does not really matter. It might
also be a change in the hash function on some class, such as File or
String.
 
A

Arne Vajhøj

Roedy said:
By Murphy's law, I suspect it would chew up at least a couple of hours
to track this down. In my case it does not really matter. It might
also be a change in the hash function on some class, such as File or
String.

Maybe you should have checked whether the problem exist before
asking.

There are a great link here:
http://mindprod.com/jgloss/sscce.html

:)

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top