Back

random-bytes (clj)

(source)

function

(random-bytes numbytes) (random-bytes numbytes sr)
Generate a byte array of specified length with random bytes taken from secure random number generator. This method should be used to generate a random iv/salt or arbitrary length.

Examples