= random: randomint, randombuf: random number generation include "security.m"; random := load Random Random->PATH; randomint: fn(which: int): int; randombuf: fn(which, n: int): array of byte;Randomint and randombuf return random or not-quite-randomdata obtained from /dev/random or /dev/notquiterandom. Ran‐domint returns a random integer; randombuf returns an arrayof length n filled with random bytes. In both functions,which may be either ReallyRandom or NotQuiteRandom to selectthe random data source.== files/dev/random/dev/notquiterandom== source/appl/lib/random.b== see ALSOrand(2), cons(3)
= random: randomint, randombuf: random number generation
include "security.m";
random := load Random Random->PATH;
randomint: fn(which: int): int;
randombuf: fn(which, n: int): array of byte;
Randomint and randombuf return random or not-quite-random
data obtained from /dev/random or /dev/notquiterandom. Ran‐
domint returns a random integer; randombuf returns an array
of length n filled with random bytes. In both functions,
which may be either ReallyRandom or NotQuiteRandom to select
the random data source.
== files
/dev/random
/dev/notquiterandom
== source
/appl/lib/random.b
== see ALSO
rand(2), cons(3)