aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/lrand.c
blob: 47c331d994ac351ab6b67427ea72b78438c08918 (plain)
1
2
3
4
5
6
7
8
#include	<u.h>
#include	<libc.h>

long
lrand(void)
{
	return ((rand()<<16)^rand()) & 0x7FFFFFFF;
}