plan9port/src/lib9/lrand.c
2004-03-21 14:05:38 +00:00

8 lines
99 B
C

#include <u.h>
#include <libc.h>
long
lrand(void)
{
return ((rand()<<16)^rand()) & 0x7FFFFFFF;
}