1570af302Sopenharmony_ci#include <stdlib.h>
2570af302Sopenharmony_ci#include <string.h>
3570af302Sopenharmony_ci#include "rand48.h"
4570af302Sopenharmony_ci
5570af302Sopenharmony_ciunsigned short *seed48(unsigned short *s)
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ci	static unsigned short p[3];
8570af302Sopenharmony_ci	memcpy(p, __seed48, sizeof p);
9570af302Sopenharmony_ci	memcpy(__seed48, s, sizeof p);
10570af302Sopenharmony_ci	return p;
11570af302Sopenharmony_ci}
12