Albert Esteve a6ceee591a util/uuid: add a hash function
Add hash function to uuid module using the
djb2 hash algorithm.

Add a couple simple unit tests for the hash
function, checking collisions for similar UUIDs.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Albert Esteve <aesteve@redhat.com>
Message-Id: <20231002065706.94707-2-aesteve@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2023-10-04 18:15:06 -04:00
..
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2022-12-20 17:09:41 -08:00
2023-03-28 15:23:10 -07:00
2023-03-20 12:43:50 +01:00
2023-09-21 09:05:10 -04:00
2023-09-08 13:08:52 +03:00
2023-10-04 18:15:06 -04:00
2023-09-08 13:08:52 +03:00