Commits

Miki Tebeka  committed 2ac1dff

Comments

  • Participants
  • Parent commits 119266a

Comments (0)

Files changed (1)

File src/uuid.clj

-(ns uuid
+(ns ^{:doc "UUID implementation
+
+  This is just a thin wrapper around java.util.UUID"
+       :author "Miki Tebeka"}
+  uuid
   (:import java.util.UUID))
 
-(defn uuid []
+(defn uuid 
+  "Return a string representation of new type 4 UUID."
+  []
   (str (UUID/randomUUID)))
 
-(defn name-uuid [s]
+(defn name-uuid 
+  "Type 3 (name based) UUID based on `s`."
+  [s]
   (str (UUID/nameUUIDFromBytes (.getBytes s))))