(custom alphabet size)
(custom alphabet size random)
Builds ID generator with custom parameters. Takes alphabet and size. alphabet must contain 256 symbols or less; otherwise, the generator won't be secure. Also you can provide your own random bytes generator. It should be a function that takes one argument - number of bytes, and returns a byte array.
Builds ID generator with custom parameters. Takes alphabet and size. alphabet must contain 256 symbols or less; otherwise, the generator won't be secure. Also you can provide your own random bytes generator. It should be a function that takes one argument - number of bytes, and returns a byte array.
(nano-id)
(nano-id size)
Secure random ID generator. Generates IDs of the specified size, 21 by default.
Secure random ID generator. Generates IDs of the specified size, 21 by default.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close