Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
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 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 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 defined in the XPG4 Version 2 specification.
6−72 Hewlett-Packard Company 527192-018