Visible to Intel only — GUID: GUID-BB4CB1C4-B3A8-4B6E-944C-4363FDA34B6B
Visible to Intel only — GUID: GUID-BB4CB1C4-B3A8-4B6E-944C-4363FDA34B6B
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. |