Adding upstream version 3.50~pre5.
[syslinux-debian/hramrach.git] / com32 / lib / srand48.c
bloba3df16d95c002fc906886db9175960c61383cef8
1 /*
2 * srand48.c
3 */
5 #include <stdlib.h>
6 #include <stdint.h>
8 extern unsigned short __rand48_seed[3];
11 void srand48(long seedval)
13 __rand48_seed[0] = 0x330e;
14 __rand48_seed[1] = (unsigned short)seedval;
15 __rand48_seed[2] = (unsigned short)((uint32_t)seedval >> 16);