Liking cljdoc? Tell your friends :D

uniformity.random


rand-base64-stringclj/s

(rand-base64-string n)

Generates base64-encoded string of n bytes

Generates base64-encoded string of n bytes
sourceraw docstring

rand-boolclj/s

(rand-bool)

Returns a cryptographically random boolean

Returns a cryptographically random boolean
sourceraw docstring

rand-bytesclj/s

(rand-bytes n)

Generate an array of n cryptographically random bytes

Generate an array of n cryptographically random bytes
sourceraw docstring

rand-hex-stringclj/s

(rand-hex-string n)

Generates hex-encoded string of n bytes

Generates hex-encoded string of n bytes
sourceraw docstring

rand-int32clj/s

(rand-int32)
(rand-int32 max)
(rand-int32 min max)

Returns a value between -2^31 and 2^31, exclusive of upper bound. When called with no argument, or one argument for upper bound, defaults to a lower bound of 0.

Returns a value between -2^31 and 2^31, exclusive of upper bound.
When called with no argument, or one argument for upper bound,
defaults to a lower bound of 0.
sourceraw docstring

rand-passphraseclj/s

(rand-passphrase length wordlist)
(rand-passphrase length wordlist delimiter)

Generates passphrase from a wordlist, optionally taking delimiter (defaults to -).

Generates passphrase from a wordlist, optionally taking delimiter (defaults to -).
sourceraw docstring

rand-passwordclj/s

(rand-password length mask-or-opts)

Generates password, either from a character mask (provided as string), or a collection of mask option keywords. Mask options: :upper adds A-Z :lower adds a-z :digits adds 0-9 :special adds !@#$%^&*-_+= :non-ambiguous removes O01Il

Generates password, either from a character mask (provided as string), or a collection of mask option keywords.
Mask options:
  :upper adds A-Z
  :lower adds a-z
  :digits adds 0-9
  :special adds !@#$%^&*-_+=
  :non-ambiguous removes O01Il
sourceraw docstring

rand-selectionclj/s

(rand-selection coll)
(rand-selection coll n)

Returns a cryptographically random element from a collection, or a character from a string. Can take a count as the second argument to return a sequence of selections.

Returns a cryptographically random element from a collection, or a character from a string.
Can take a count as the second argument to return a sequence of selections.
sourceraw docstring

rand-shuffleclj/s

(rand-shuffle coll)

Shuffles a collection in cryptographically random manner.

Shuffles a collection in cryptographically random manner.
sourceraw docstring

rand-uuidclj/s

(rand-uuid)

Generates a cryptographically random UUIDv4

Generates a cryptographically random UUIDv4
sourceraw docstring

rand-web-tokenclj/s

(rand-web-token n)

Generates URL-safe base64-encoded string of n bytes

Generates URL-safe base64-encoded string of n bytes
sourceraw docstring

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

× close