uuid.version3

STRINGuuid.version3STRINGnamespaceSTRINGname

Available inall subroutines.

Derives a UUID corresponding to name within the given namespace using an MD5 hash function. The namespace itself is identified by a UUID. The name must be in a canonical form appropriate for the selected namespace.

IMPORTANT: In principle, names can be arbitrary octet strings. This implementation will, however, truncate at the first NUL byte.

Example

set req.http.X-Unique-Id = uuid.version3(uuid.dns(), "www.fastly.com");

User contributed notes

BETA

Do you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)