Liking cljdoc? Tell your friends :D

secrets.core

The secrets module is used for generating cryptographically strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets.

The secrets module is used for generating cryptographically strong random numbers
suitable for managing data such as passwords, account authentication, security tokens,
and related secrets.
raw docstring

choiceclj

(choice collection)

Return a randomly-chosen element from a non-empty coll.

Return a randomly-chosen element from a non-empty coll.
sourceraw docstring

randbelowclj

(randbelow n)

Return a random int in the range [0, n).

Return a random int in the range [0, n).
sourceraw docstring

token-bytesclj

(token-bytes)
(token-bytes nbytes)

Return a random byte string containing nbytes number of bytes. If nbytes is nil or not supplied, a reasonable default is used.

Return a random byte string containing nbytes number of bytes. If nbytes is nil or not supplied,
a reasonable default is used.
sourceraw docstring

token-hexclj

(token-hex)
(token-hex nbytes)

Return a random text string, in hexadecimal. The string has nbytes random bytes, each byte converted to two hex digits. If nbytes is nil or not supplied, a reasonable default is used (32).

Return a random text string, in hexadecimal. The string has nbytes random bytes, each byte
converted to two hex digits. If nbytes is nil or not supplied, a reasonable default is used (32).
sourceraw docstring

token-urlsafeclj

(token-urlsafe)
(token-urlsafe nbytes)

Return a random URL-safe text string, containing nbytes random bytes. The text is Base64 encoded, so on average each byte results in approximately 1.3 characters. If nbytes is nil or not supplied, a reasonable default is used (32)

Return a random URL-safe text string, containing nbytes random bytes. The text is Base64 encoded,
so on average each byte results in approximately 1.3 characters. If nbytes is nil or not supplied,
a reasonable default is used (32)
sourceraw docstring

unix-timestampclj

(unix-timestamp)
source

uuid4clj

(uuid4)

Return UUID generated using a cryptographically strong pseudo random number generator.

Return UUID generated using a cryptographically strong pseudo random number generator.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close