critical impact:
srandom - incompatible return type (CrCh23)
Problem description
The Tru64 UNIX and HP-UX return types for this API are incompatible.
The srandom function generates a pseudo-random number. The Tru64 UNIX srandom function prototype is as follows:
int srandom(unsigned int)
The HP-UX srandom function prototype is as follows:
void srandom(unsigned int)
On Tru64 UNIX, upon successful completion, the srandom function returns success with a value of 0 (zero). Upon failure, it returns -1 and may set errno. The srandom function initializes the state seed.
On HP-UX, the srandom function returns no value.
Identifiers
 srandom |
|
|
|
|
See also
Solution description
Review applicable references pages and code.
If your code checks for a return value from srandom, you must modify it to remove this check and any logic that uses the return value. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| UN |
C, C++ |
any HP-UX 11i version |
critical |
changed |
|