BOTAN(3em)

πŸ“¦ version 1.2.1, in nixos 26.05, nixpkgs unstable

πŸŽ€ 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