Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

OSS Library Calls (s) srandom(3)
NAME
srandom - Generates random numbers
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZSTFNSRL
G-series native OSS processes: /G/system/sysnn/zstfnsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
H-series OSS processes: /G/system/zdllnnn/zcredll
SYNOPSIS
#include <stdlib.h>
void srandom (
unsigned int seed);
PARAMETERS
seed Is an unsigned int used to initialize a state array.
DESCRIPTION
The srandom() function uses the seed parameter to initialize the current state array. Calling
srandom() with a seed value of 1 causes the random() function to generate the same sequence
of random numbers that it generates with its default settings.
NOTES
This function can be called by native processes only.
RETURN VALUES
The srandom() function does not return a value.
ERRORS
None. This function does not set errno.
STANDARDS CONFORMANCE
The srandom() function is dened in the XPG4 Version 2 specication.
527187-004 Hewlett-Packard Company 669