rem: new_chrand(const unsigned int inittimes) { ch_randgen *prandgen; prandgen = (ch_randgen *)malloc(sizeof(ch_randgen)); prandgen->seedptr = prandgen->ira; prandgen->rndptrX = prandgen->ira; prandgen->rndptrA = prandgen->ira; prandgen->rndptrB = prandgen->ira; prandgen->rndLeft.Q[0] = 0x1A4B385C72D69E0FUL; prandgen->rndRite.Q[0] = 0x9C805FE7361A42DBUL; reseed (prandgen, inittimes); prandgen->seedptr = prandgen->ira + chrand (prandgen) % NK; prandgen->rndptrX = prandgen->ira + chrand (prandgen) % NK; prandgen->rndptrA = prandgen->ira + chrand (prandgen) % NK; prandgen->rndptrB = prandgen->ira + chrand (prandgen) % NK; return prandgen;
add: new_chrand(const unsigned int inittimes) { ch_randgen *prandgen;  prandgen = (ch_randgen *)malloc(sizeof(ch_randgen)); if (prandgen == NULL) return NULL;  prandgen->seedptr = prandgen->ira; prandgen->rndptrX = prandgen->ira; prandgen->rndptrA = prandgen->ira; prandgen->rndptrB = prandgen->ira; prandgen->rndLeft.Q[0] = 0x1A4B385C72D69E0FUL; prandgen->rndRite.Q[0] = 0x9C805FE7361A42DBUL; reseed (prandgen, inittimes);  prandgen->seedptr = prandgen->ira + chrand (prandgen) % NK; prandgen->rndptrX = prandgen->ira + chrand (prandgen) % NK; prandgen->rndptrA = prandgen->ira + chrand (prandgen) % NK; prandgen->rndptrB = prandgen->ira + chrand (prandgen) % NK; return prandgen;
context: new_chrand(const unsigned int inittimes) { 	ch_randgen *prandgen; 	prandgen = (ch_randgen *)malloc(sizeof(ch_randgen)); 	prandgen->seedptr = prandgen->ira; 	prandgen->rndptrX = prandgen->ira; 	prandgen->rndptrA = prandgen->ira; 	prandgen->rndptrB = prandgen->ira; 	prandgen->rndLeft.Q[0] = 0x1A4B385C72D69E0FUL; 	prandgen->rndRite.Q[0] = 0x9C805FE7361A42DBUL; 	reseed (prandgen, inittimes); 	prandgen->seedptr = prandgen->ira + chrand (prandgen) % NK; 	prandgen->rndptrX = prandgen->ira + chrand (prandgen) % NK; 	prandgen->rndptrA = prandgen->ira + chrand (prandgen) % NK; 	prandgen->rndptrB = prandgen->ira + chrand (prandgen) % NK; 	return prandgen; }