1 2 3 4 5 6 7 8
#include <u.h> #include <libc.h> long lrand(void) { return ((rand()<<16)^rand()) & 0x7FFFFFFF; }