1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 int rand( void ) { /* TODO */ };
9 void srand( unsigned int seed ) { /* TODO */ };
11 /* PDPC code - unreviewed
12 static unsigned long myseed = 1;
14 void srand(unsigned int seed)
24 myseed = myseed * 1103515245UL + 12345;
25 ret = (int)((myseed >> 16) & 0x8fff);