3 genrandom, prng \- random number generation
11 .B #include <libsec.h>
14 void genrandom(uchar *buf, int nbytes)
17 void prng(uchar *buf, int nbytes)
19 Most security software requires a source of random or, at the
20 very least, unguessable numbers.
23 fills a buffer with bytes from the X9.17 pseudo-random
24 number generator. The X9.17 generator is seeded by 24
25 truly random bytes read from
31 pseudo-random number generator to fill the buffer. Used with
33 this function can produce a reproducible stream of pseudo random
34 numbers useful in testing.
36 Both functions may be passed to
41 .B /usr/local/plan9/src/libsec