BOTAN(3em)
π NAME π
okay so this whole page is about botan, aka the Botan bindings for Emilua. Bestie, itβs giving randomness, and weβre gonna walk through it together. β¨
π SYNOPSIS π
you pull in the RNG like this, no cap:
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, it might be instantiated by /dev/urandom or CryptGenRandom. Yes, literally those exact examples β not me making stuff up. π
π¦ auto_seeded.new([reseed_interval: integer]) β random_number_generator
returns a newly allocated auto-seeded RNG object. The reseed_interval is optional and itβs an integer β thatβs the whole vibe of the signature, bestie. π«Ά
πΈ randomize(self, output: byte_span)
places random bytes into output. Thatβs it β it fills your byte_span with randomness. β
π PROPERTIES π
π name: string
the name of this RNG type. Itβs a string, obviously. iconic. π
mwah π β this page is from Emilua 0.12.1, dated 1980-01-01.
π¦ where this page comes from
- nixos 26.05: emilua-botan 1.2.1
- nixpkgs unstable: emilua-botan 1.2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms