ref: 1a7d3b66fa8fb41f133c1093b52148f0ba6d71b4 dir: /sys/src/libc/port/rand.c/
#include <u.h> #include <libc.h> int rand(void) { return lrand() & 0x7fff; }