16static int outleft = 0;
18#define ROTATE(x,b) (((x) << (b)) | ((x) >> (32 - (b))))
19#define MUSH(i,b) x = t[i] += (((x ^ seed[i]) + sum) ^ ROTATE(x,b));
24 int r;
int i;
int loop;
26 for (i = 0; i < 12; ++i) t[i] = in[i] ^ seed[12 + i];
27 for (i = 0; i < 8; ++i) out[i] = seed[24 + i];
29 for (loop = 0; loop < 2; ++loop) {
30 for (r = 0; r < 16; ++r) {
36 for (i = 0; i < 8; ++i) out[i] ^= t[i + 4];
46 for (i = 0; i < 32; ++i)
51 for (i = 0; i < 4; ++i)
64 if (!++in[0])
if (!++in[1])
if (!++in[2]) ++in[3];
69 return out[--outleft] % n;
unsigned int dns_random(unsigned int n)
void dns_random_init(const char data[128])
additional types and pack routines
void uint32_unpack(char *, uint32 *)
void taia_pack(char *, struct taia *)
int taia_now(struct taia *)