20 static unsigned long next= 1;
34 next= next * 1103515245 + 12345;
35 return((
unsigned)(next/65536) % 32768);
38 void ndb_srand(
unsigned seed)
44 ndb_rand_r(
unsigned * seed)
46 * seed = (* seed) * 1103515245 + 12345;
47 return ((
unsigned)(*seed / 65536) % 32768);