From: Øyvind Kolås Date: Sat, 31 Dec 2016 19:26:35 +0000 (+0100) Subject: make fish hashes less likely to fail X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~21^2~281 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4c8edae7cb5fbbfedc5dd9884d94b0495dfc5702;p=babl.git make fish hashes less likely to fail --- diff --git a/babl/babl-fish.c b/babl/babl-fish.c index 76cb53d..96c69c3 100644 --- a/babl/babl-fish.c +++ b/babl/babl-fish.c @@ -133,6 +133,8 @@ babl_fish_get_id (const Babl *source, * source/destination values. */ ptrdiff_t id = source - destination; /* instances with id 0 won't be inserted into database */ + id *= ((((size_t) (source))) % 37); + if (id == 0) id = 1; return id;