Collision-resistant ids for clojure and clojurescript.
Clojure
Latest commit 782509c Dec 21, 2015 @hden 0.1.1
Permalink
Failed to load latest commit information.
src/cuid
test/cuid
.gitignore
LICENSE
README.md
project.clj

README.md

cuid Build Status

Collision-resistant ids for clojure and clojurescript. Ported from https://github.com/ericelliott/cuid. (cuid) returns a short random string with some collision-busting measures. Safe to use as HTML element ID's, and unique server-side record lookups.

clojars

Usage

(ns example
  (:require [cuid.core :as c]))

(println (c/cuid))

;; optionally with custom fingerprint
(println (c/cuid {:foo "bar"}))

License

MIT