Visible to Intel only — GUID: GUID-87FE7D46-4D5E-437E-B4D9-581ADFC57A30
Visible to Intel only — GUID: GUID-87FE7D46-4D5E-437E-B4D9-581ADFC57A30
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 the IppsPRNGState context. |
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 is NULL. |
ippStsContextMatchErr |
Indicates an error condition if the context parameter does not match the operation. |
ippStsLengthErr |
Indicates an error condition if nBits is less than 1. |