critical impact:
random, srandom, setstate, initstate - require header file (CrCh59)
Problem description
The Tru64 UNIX and HP-UX header files for the random, srandom, setstate, and initstate functions are different.
The random, srandom, setstate, and initstate routines generate a pseudo-random number.
On Tru64 UNIX, no header file is required. On HP-UX, the following header file
is required:
#include <stdlib.h>
Identifiers
 initstate |
 random |
 setstate |
 srandom |
|
See also
Solution description
Modify application code.
You must include the <stdlib.h> header file in your application. Review applicable reference pages and code for more detail. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| HDR |
C, C++ |
any HP-UX 11i version |
critical |
changed |
|