From 340faa3a27fcb1e741ba22eb41456b72e47ba8d5 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 10 Apr 2020 14:24:15 +0200 Subject: [PATCH] :tada: Add helper for create custom more easy to read uuids (for testing). --- backend/src/uxbox/util/uuid.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/uxbox/util/uuid.clj b/backend/src/uxbox/util/uuid.clj index 3ac34f8ba..d150a7023 100644 --- a/backend/src/uxbox/util/uuid.clj +++ b/backend/src/uxbox/util/uuid.clj @@ -37,3 +37,6 @@ [s] (UUID/fromString s)) +(defn custom + ([a] (UUID. 0 a)) + ([b a] (UUID. b a)))