Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

srandom - incompatible return type (CrCh23)

UN Impacts

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

C/C++ Functionssrandom        

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
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.