ref: 12ccc63ec3d72d1ef5b591c7f50534ac3b1e890b dir: /sys/src/libsec/port/prng.c/
#include "os.h" #include <libsec.h> // // just use the libc prng to fill a buffer // void prng(uchar *p, int n) { uchar *e; for(e = p+n; p < e; p++) *p = rand(); }