Category : C Source Code
Archive   : RECIPEX.ZIP
Filename : IRBIT1.C

 
Output of file : IRBIT1.C contained in archive : RECIPEX.ZIP
#define IB1 1
#define IB2 2
#define IB5 16
#define IB18 131072

int irbit1(iseed)
unsigned long *iseed;
{
unsigned long newbit;

newbit = (*iseed & IB18) >> 17
^ (*iseed & IB5) >> 4
^ (*iseed & IB2) >> 1
^ (*iseed & IB1);
*iseed=(*iseed << 1) | newbit;
return (int) newbit;
}

#undef IB1
#undef IB2
#undef IB5
#undef IB18


  3 Responses to “Category : C Source Code
Archive   : RECIPEX.ZIP
Filename : IRBIT1.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/