Add magic number to hash (prevent all pure-black or similarly-black images from hashing to same value universally).
This commit is contained in:
parent
88445c5cb8
commit
d7ae188564
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user