diff --git a/common-lib/utils/CommonUtils.go b/common-lib/utils/CommonUtils.go index 17ccda061..97c7b9051 100644 --- a/common-lib/utils/CommonUtils.go +++ b/common-lib/utils/CommonUtils.go @@ -52,6 +52,11 @@ func Generate(size int) string { return str } +// GenerateUCID generates UCID of len 16 +func GenerateUCID() string { + return Generate(16) +} + func hasScheme(url string) bool { return len(url) >= 7 && (url[:7] == "http://" || url[:8] == "https://") }