Re: [PATCH v5 1/4] uuid: add a hash function

2023-09-05 Thread Philippe Mathieu-Daudé
On 2/8/23 11:08, Albert Esteve wrote: Add hash function to uuid module using the djb2 hash algorithm. ^ This info ... Add a couple simple unit tests for the hash function, checking collisions for similar UUIDs. Signed-off-by: Albert Esteve --- include/qemu/uuid.h| 2 ++ tests/unit/t

[PATCH v5 1/4] uuid: add a hash function

2023-08-02 Thread Albert Esteve
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. Signed-off-by: Albert Esteve --- include/qemu/uuid.h| 2 ++ tests/unit/test-uuid.c | 27 +++ util/uuid.c