Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)

srandom(3) Guardian Native C Library Calls Reference Manual
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.
640 Hewlett-Packard Company 527192-005