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-18 15:27:27 +02:00
2023-09-08 13:08:52 +03:00
2023-06-07 11:05:09 +02: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
2023-09-21 09:32:07 -04:00
2023-09-25 10:09:04 -04:00
2023-09-08 13:08:52 +03: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