Add magic number to hash (prevent all pure-black or similarly-black images from hashing to same value universally).

This commit is contained in:
Michael Jumper 2012-08-20 19:19:26 -07:00
parent 88445c5cb8
commit d7ae188564

View File

@ -101,7 +101,7 @@ unsigned int guac_hash_surface(cairo_surface_t* surface) {
/* Compute next hash */
hash_value =
_guac_rotate(hash_value, 1) ^ color;
_guac_rotate(hash_value, 1) ^ color ^ 0x1B872E69;
}