Generate pseudo uuid
This commit is contained in:
parent
d4b78a3ac4
commit
bae891b673
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@
|
|||
;; (and (starts-with-subseq "/survey/" uri)
|
||||
;; (every #'digit-char-p id))))
|
||||
|
||||
(defun generate-uuid ()
|
||||
(parse-integer (format nil "~A~A~A"
|
||||
(sb-posix:getpid)
|
||||
(get-universal-time)
|
||||
(random 1000000))))
|
||||
|
||||
(defun string-empty-p (string) (= (length string) 0))
|
||||
|
||||
(defun split-uri (uri)
|
||||
|
|
Loading…
Add table
Reference in a new issue