Developer Reference

Contents

User's Implementation of a Pseudorandom Number Generator

Both functions
ippsPRNGGen
and
ippsPRNGGen_BN
, as well as their supplementary functions represent the implementation of the pseudorandom number generator in the IPPCP library. This given implementation is based on recommendations made in [FIPS PUB 186-2]. If you prefer to use the implementation of the pseudorandom number generator which is different from the given, you can still use IPPCP library. To do this, use the following definition of the generator introduced by the IPPCP library:

Syntax

typedef IppStatus(_STDCALL *IppBitSupplier)(Ipp32u*
pData
, int
nBits
, void*
pEbsParams
);

Parameters

pData
Pointer to the output data.
nBits
Number of generated data bits.
pEbsParams
Pointer to the user defined context.

Description

This declaration is included in the ippcp.h file. The function generates any data (probably pseudorandom numbers) of the specified
nBits
length.

Return Values

ippStsNoErr
Indicates no error. Any other value indicates an error or warning.
ippStsErr
Indicates an error condition.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804