xref: /aosp_15_r20/external/musl/src/prng/seed48.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1 #include <stdlib.h>
2 #include <string.h>
3 #include "rand48.h"
4 
seed48(unsigned short * s)5 unsigned short *seed48(unsigned short *s)
6 {
7 	static unsigned short p[3];
8 	memcpy(p, __seed48, sizeof p);
9 	memcpy(__seed48, s, sizeof p);
10 	return p;
11 }
12