botan.random_number_generator

local rng = require "botan".random_number_generator

Functions

system() → random_number_generator

Returns a shared reference to a global PRNG instance provided by the operating system. For instance might be instantiated by /dev/urandom or CryptGenRandom.

auto_seeded.new([reseed_interval: integer]) → random_number_generator

Returns a newly allocated auto-seeded RNG object.

randomize(self, output: byte_span)

Places random bytes into output.

Properties

name: string

The name of this RNG type.