https://github.com/hden/cuid
Collision-resistant ids for clojure and clojurescript.
https://github.com/hden/cuid
Last synced: 3 months ago
JSON representation
Collision-resistant ids for clojure and clojurescript.
- Host: GitHub
- URL: https://github.com/hden/cuid
- Owner: hden
- License: mit
- Created: 2015-12-12T12:52:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-19T02:26:48.000Z (3 months ago)
- Last Synced: 2025-04-19T11:08:06.200Z (3 months ago)
- Language: Clojure
- Size: 38.1 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cuid  [](https://codecov.io/gh/hden/cuid)
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.
## Usage
```clj
(ns example
(:require [cuid.core :as c]))(println (c/cuid))
;; optionally with custom fingerprint
(println (c/cuid {:foo "bar"}))
```## License
MIT