diff --git a/doc/configuration.txt b/doc/configuration.txt index f0168b0ea..773284342 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 43ab00352..49017fe56 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 61e0eaf6f..1f6766523 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)) & 0xFFFFFFFFFFFFull); } -/* 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)