@hackage hscuid1.2.0.0

Collision-resistant IDs

  • Installation

  • Dependencies (0)

  • Dependents (0)

hscuid Build Status

A Haskell port of the JavaScript library for collision-resistant identifiers. To install, cabal install hscuid.

What is a CUID?

CUIDs are short random strings designed so that you can generate a lot of them over many different machines and not get collisions. They are designed to be usable in many situations, such as HTML element IDs. You can read more about them at usecuid.org.

How do I use this library?

>>> import Web.Cuid (newCuid, newSlug)
>>> newCuid
"cib3c3tcu0000zwowx9ho2gh4"
>>> newSlug
"y900001wmf"