When support for UUIDv7 was added in commit
aab6477b67415c4cc260bba5df359fa2e6f49733
the specification still was a draft.
It has since been published as RFC 9562.
This patch updates all UUID references from the obsoleted RFC 4122 and the
draft for RFC 9562 to the published RFC 9562.
---
doc/configuration.txt | 2 +-
src/sample.c | 2 +-
src/tools.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/configuration.txt b/doc/configuration.txt
index f0168b0ea8..7732843427 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -21314,7 +21314,7 @@ txn.sess_term_state : string
http-after-response set-status 429 if { txn.sess_term_state "sQ" }
uuid([]) : string
- Returns a UUID following the RFC4122 standard. If the version is not
+ Returns a UUID following the RFC 9562 standard. If the version is not
specified, a UUID version 4 (fully random) is returned.
Versions 4 and 7 are supported.
diff --git a/src/sample.c b/src/sample.c
index 43ab003529..49017fe56b 100644
--- a/src/sample.c
+++ b/src/sample.c
@@ -4795,7 +4795,7 @@ static int smp_check_uuid(struct arg *args, char **err)
return 1;
}
-// Generate a RFC4122 UUID (default is v4 = fully random)
+// Generate a RFC 9562 UUID (default is v4 = fully random)
static int smp_fetch_uuid(const struct arg *args, struct sample *smp, const
char *kw, void *private)
{
long long int type = -1;
diff --git a/src/tools.c b/src/tools.c
index 61e0eaf6ff..1f67665237 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -5739,8 +5739,8 @@ void ha_random_jump96(uint32_t dist)
}
}
-/* Generates an RFC4122 version 4 UUID into chunk which must be at
least 37
- * bytes large.
+/* Generates an RFC 9562 version 4 UUID into chunk
+ * which must be at least 37 bytes large.
*/
void ha_generate_uuid_v4(struct buffer *output)
{
@@ -5763,7 +5763,7 @@ void ha_generate_uuid_v4(struct buffer *output)
(long long)((rnd[2] >> 14u) | ((uint64_t) rnd[3] << 18u))
& 0xull);
}
-/* Generates a draft-ietf-uuidrev-rfc4122bis-14 version 7 UUID into chunk
+/* Generates an RFC 9562 version 7 UUID into chunk
* which must be at least 37 bytes large.
*/
void ha_generate_uuid_v7(struct buffer *output)
--
2.43.2