Generates pseudorandom numbers.
int srandom (unsigned seed);
The srandom function initializes the current state with the initial seed value.
The srandom function, unlike the srand function, does not return the old seed because the amount of state information used is more than a single word.
See also rand, srand, and random in this section.
0 | Indicates success. Initializes the state seed. |
-1 | Indicates an error, further specified in the global errno. |