components/prboom/m_random.c
// Initialize all the seeds
//
// This initialization method is critical to maintaining demo sync.
// Each seed is initialized according to its class, so if new classes
// are added they must be added to end of pr_class_t list. killough
//
Initialize all the seeds
This initialization method is critical to maintaining demo sync.
Each seed is initialized according to its class, so if new classes
are added they must be added to end of pr_class_t list. killough
Initialize all the seeds This initialization method is critical to maintaining demo sync . Each seed is initialized according to its class so if new classes are added they must be added to end of pr_class_t list . killough
void M_ClearRandom (void)
{
  int i;
  unsigned long seed = rngseed*2+1;    
  for (i=0; i<NUMPRCLASS; i++)         
    rng.seed[i] = seed *= 69069ul;     
  rng.prndindex = rng.rndindex = 0;    
}
void M_ClearRandom ( void ) { int i ; unsigned long seed = rngseed * 2 + 1 ; for ( i = 0 ; i < NUMPRCLASS ; i ++ ) rng . seed [ i ] = seed *= 69069ul ; rng . prndindex = rng . rndindex = 0 ; }
Initialize all the seeds
This initialization method is critical to maintaining demo sync.
Initialize all the seeds This initialization method is critical to maintaining demo sync .
// add 3/26/98: add rngseed // go through each pr_class and set // each starting seed differently // clear two compatibility indices