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