7 This file is part of the Public Domain C Library (PDCLib).
8 Permission is granted to use, modify, and / or redistribute at will.
17 _PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345;
18 return (unsigned int) ( _PDCLIB_seed / 65536 ) % 32768;
24 #include <_PDCLIB_test.h>
30 TESTCASE( ( rnd1 = rand() ) < RAND_MAX );
31 TESTCASE( ( rnd2 = rand() ) < RAND_MAX );
33 TESTCASE( rand() == rnd1 );
34 TESTCASE( rand() == rnd2 );