Adding upstream version 3.50~pre5.
[syslinux-debian/hramrach.git] / com32 / lib / seed48.c
blobc1d173044a48343853c3d01203ab0000f1e2b002
1 /*
2 * seed48.c
3 */
5 #include <stdlib.h>
6 #include <stdint.h>
7 #include <string.h>
9 extern unsigned short __rand48_seed[3];
11 unsigned short *seed48(const unsigned short xsubi[3])
13 static unsigned short oldseed[3];
14 memcpy(oldseed, __rand48_seed, sizeof __rand48_seed);
15 memcpy(__rand48_seed, xsubi, sizeof __rand48_seed);
17 return oldseed;