
Module: Secure Communication Module Package: Secure Sockets
Global Macro
This macro is defined automatically on Windows when the Secure Sockets package determines that your application can seed the random number generator from screen data. This means that your application can call the constructor
RWSecureSocketPackageInit(WindowsSeedScreen, ErrorStringsFlag)
and the function
RWSecureSocketPackageInit::seedRNGFromScreen().
When you use this seeding functionality in your applications, wrap it in RW_SECSOCK_SEEDRNGFROMSCREEN for maximum portability.
If an application must seed the RNG, programs compiled for MS Windows will use screen data, and other platforms will use the file seeddata.dat. The following code block outlines the previously mentioned example:
#if defined (RW_SECSOCK_RNG_NEEDS_SEEDING)
#if defined (RW_SECSOCK_SEEDRNGFROMSCREEN)
RWSecureSocketPackageInit::seedRNGFromScreen();
#else
RWSecureSocketPackageInit::seedRNGFromFile("seeddata.dat");
#endif
#endif
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.