Xyon (xyon) wrote,
Xyon
xyon

String.GetHashCode() collisions

More for my reference than anyone else's, but here are some collisions.

Win32:
"699391" and "1241308" are both 0x9FDCD8F4 (yay Google)

Win64:
"942" and "9331582" are both 0x90D8C663 (yay exhaustive search)

(And if you didn't know, GetHashCode() is different on Win32 and Win64; also, it might change tomorrow, who knows? They don't want you to save the value, but sometimes it's useful to have some collisions for testing things)
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments