Skip to contents

libsodium's randombytes_buf when rmorie is linked against it, otherwise the operating system's source through rmoriebricklayer::random_bytes() (never R's own generator).

Usage

morie_crypto_random_bytes(n)

Arguments

n

Number of bytes to generate.

Value

Raw vector of length n.

Examples

r <- morie_crypto_random_bytes(32L)
length(r)
#> [1] 32