blob: 66ce786ea2e5fb0315d197325d0288d0b0742b50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <stdlib.h>
#include "nonstd/internal.h"
/** seed the pseudo-random number generator **/
void srand(unsigned int seed)
{
*((int*)__libc(RAND)) = seed;
}
/***
seeds the pseudo-random number generator with ARGUMENT(seed). The
sequence of pseudo-random numbers generated by a single seed is repeatable.
Program execution begins with a seed of 1.
***/
/*
STDC(1)
*/
|