aboutsummaryrefslogtreecommitdiff
path: root/src/prng/lrand48.c
blob: 178a86da809b350dca8607f42ccd116ae84ff38f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdlib.h>
#include <inttypes.h>
#include "rand48.h"

long nrand48(unsigned short s[3])
{
	return __rand48_step(s, __seed48+3) >> 17;
}

long lrand48(void)
{
	return nrand48(__seed48);
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif