Crate slugid

Source
Expand description

Generate slugds.

Slugids are fixed-length (22 characters) URL-safe random identifiers. They contain enough entropy that for all practical purposes they can be considered unique.

See https://github.com/taskcluster/slugid for details.

Functions§

nice
Return a randomly-generated slugid that does not begin with -. This is “nicer” in the sense that it is easily uesed on the command line.
nice_rng
Like nice but accepting a ring rng as a source of randomness.
v4
Return a randomly-generated slugid.
v4_rng
Like v4 but accepting a ring rng as a source of randomness.