]> pd.if.org Git - pdclib/blob - functions/stdlib/srand.c
5127fd9698426c7da2c484ec6a9085a350a0a290
[pdclib] / functions / stdlib / srand.c
1 /* srand( unsigned int )
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 #include <stdlib.h>
8
9 #ifndef REGTEST
10
11 void srand( unsigned int seed )
12 {
13     _PDCLIB_seed = seed;
14 }
15
16 #endif
17
18 #ifdef TEST
19 #include <_PDCLIB_test.h>
20
21 int main( void )
22 {
23     /* tested in rand.c */
24     return TEST_RESULTS;
25 }
26
27 #endif