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-05-30 17:37:26 +02:00
2023-03-20 12:43:50 +01:00
2023-08-31 19:47:43 +02:00
2023-05-23 15:20:15 +08:00
2023-03-20 12:43:50 +01:00
2023-09-07 20:32:11 -05:00
2023-06-13 17:42:01 +10:00
2023-08-31 19:47:43 +02:00
2023-04-24 11:29:00 +02:00
2023-08-31 19:47:43 +02:00
2023-08-31 19:47:43 +02:00
2023-03-28 15:23:10 -07:00
2023-08-31 19:47:43 +02:00
2023-04-27 16:39:43 +02:00
2023-10-04 18:15:06 -04:00