crypto.random()
Gets secure random bytes.
Signature
crypto.random(count)
Parameters
Nonnegative signed byte count.
Returns
Packed u8 buffer.
Behavior
Uses the OpenSSL random generator.
Errors
Invalid length or generator failure.
Example
use crypto
assert(count(crypto.random(16)) == 16)