PRNGen
PRNGen
Generates a pseudorandom unsigned Big Number of the specified bit length.
Syntax
IppStatus ippsPRNGen(Ipp32u*
pRand
, int
nBits
, void*
pCtx
);
Include Files
ippcp.h
Parameters
- pRand
- Pointer to the output pseudorandom unsigned integer big number.
- nBits
- The number of the generated pseudorandom bits.
- pCtx
- Pointer to theIppsPRNGStatecontext.
Description
The function generates a pseudorandom unsigned integer big number of the specified
nBits
length.Return Values
- ippStsNoErr
- Indicates no error. Any other value indicates an error or warning.
- ippStsNullPtrErr
- Indicates an error condition if any of the specified pointers isNULL.
- ippStsContextMatchErr
- Indicates an error condition if the context parameter does not match the operation.
- ippStsLengthErr
- Indicates an error condition ifnBitsis less than 1.