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

unsigned short *seed48(unsigned short *s)
{
	static unsigned short p[3];
	memcpy(p, __seed48, sizeof p);
	memcpy(__seed48, s, sizeof p);
	return p;
}


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