8 long jrand48(unsigned short xsubi[3])
12 /* The xsubi[] array is littleendian by spec */
13 x = (uint64_t)(uint16_t)xsubi[0] +
14 ((uint64_t)(uint16_t)xsubi[1] << 16) +
15 ((uint64_t)(uint16_t)xsubi[2] << 32);
17 x = (0x5deece66dULL * x) + 0xb;
19 xsubi[0] = (unsigned short)(uint16_t)x;
20 xsubi[1] = (unsigned short)(uint16_t)(x >> 16);
21 xsubi[2] = (unsigned short)(uint16_t)(x >> 32);
23 return (long)(int32_t)(x >> 16);