Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
Guardian Native C Library Calls (s) srand(3)
NAME
srand - Generates pseudorandom numbers
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRESRL
G-series native OSS processes: /G/system/sysnn/zcresrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
#include <stdlib.h>
void srand(
unsigned int seed);
PARAMETERS
seed Specifies an initial seed value.
DESCRIPTION
The srand( ) function resets the random-number generator to a random starting point. The gen-
erator is initially seeded with a value of 1.
RETURN VALUES
The srand( ) function returns no value.
ERRORS
None. This function does not set errno.
527192-018 Hewlett-Packard Company 6−69