1. Miki Tebeka
  2. clj-uuid

Source

clj-uuid / src / uuid.clj

(ns ^{:doc "UUID implementation

  This is just a thin wrapper around java.util.UUID"
       :author "Miki Tebeka"}
  uuid
  (:import java.util.UUID))

(defn uuid 
  "Return a string representation of new type 4 UUID."
  []
  (str (UUID/randomUUID)))

(defn name-uuid 
  "Type 3 (name based) UUID based on `s`."
  [s]
  (str (UUID/nameUUIDFromBytes (.getBytes s))))