]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add a generic function to generate UUIDs
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2020 16:48:17 +0000 (17:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2020 17:04:16 +0000 (18:04 +0100)
commitee3bcddef71a8ea35db5bc3d26f124ec6530c431
tree73b5719d26b1b8f45b9477e9343c07f941842ab7
parentaa8bbc12ddcb134defd9a0216cf15de00d3a5e5a
MINOR: tools: add a generic function to generate UUIDs

We currently have two UUID generation functions, one for the sample
fetch and the other one in the SPOE filter. Both were a bit complicated
since they were made to support random() implementations returning an
arbitrary number of bits, and were throwing away 33 bits every 64. Now
we don't need this anymore, so let's have a generic function consuming
64 bits at once and use it as appropriate.
include/common/standard.h
src/flt_spoe.c
src/sample.c
src/standard.c