mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 02:31:38 +02:00
🎉 Replace current uuidv1 with custom v8
This commit is contained in:
parent
abfca5c89a
commit
fbfcb827ed
11 changed files with 212 additions and 105 deletions
|
@ -34,7 +34,9 @@
|
|||
[mockery.core :as mk]
|
||||
[promesa.core :as p]
|
||||
[yetti.request :as yrq])
|
||||
(:import org.postgresql.ds.PGSimpleDataSource))
|
||||
(:import
|
||||
java.util.UUID
|
||||
org.postgresql.ds.PGSimpleDataSource))
|
||||
|
||||
(def ^:dynamic *system* nil)
|
||||
(def ^:dynamic *pool* nil)
|
||||
|
@ -128,8 +130,8 @@
|
|||
|
||||
(defn mk-uuid
|
||||
[prefix & args]
|
||||
(uuid/namespaced uuid/zero (apply str prefix args)))
|
||||
|
||||
(UUID/nameUUIDFromBytes (-> (apply str prefix args)
|
||||
(.getBytes "UTF-8"))))
|
||||
;; --- FACTORIES
|
||||
|
||||
(defn create-profile*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue