From 3b0fc36ae64941d10f55d9735d45e342c6750e64 Mon Sep 17 00:00:00 2001 From: RW Date: Tue, 23 Dec 2025 15:56:00 +0100 Subject: [PATCH] Add UUID alias for UUIDv4 --- common.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.go b/common.go index ae0cda0..995b82b 100644 --- a/common.go +++ b/common.go @@ -48,6 +48,12 @@ func UUIDv4() string { return token.String() } +// UUID generates an universally unique identifier (UUID). +// This is an alias for UUIDv4 for backward compatibility. +func UUID() string { + return UUIDv4() +} + // GenerateSecureToken generates a cryptographically secure random token encoded in base64. // It uses crypto/rand for randomness and base64.RawURLEncoding for URL-safe output. // If length is less than or equal to 0, it defaults to 32 bytes (256 bits of entropy).