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:

random, srandom, setstate, initstate - require header file (CrCh59)

HDR Impacts

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

C/C++ Functionsinitstate C/C++ Functionsrandom C/C++ Functionssetstate C/C++ Functionssrandom  

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