Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 721 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 721 Bytes

cuid Build Status codecov

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