PKI.random generates n cryptographically strong pseudo-random bytes.

PKI.random(n)

Arguments

n

non-negative integer, number of bytes to generate

Details

PKI.random is the preferred way to generate cryptographically strong random content that can be used as keys, seeds etc. Not to be confused with random number generators in R, it is entirely separate for cryptographics purposes.

Value

Raw vector of n cryptographically strong pseudo-random bytes.

Author

Simon Urbanek

Examples

  PKI.random(10)
#>  [1] 6d e1 5a 50 4c 50 e9 13 fa 5d