PRNGen_BN
PRNGen_BN
Generates a pseudorandom positive Big Number of the specified bitlength.
Syntax
IppStatus ippsPRNGen_BN(IppsBigNumState*
pRandBN
, int
nBits
, void*
pCtx
);
Include Files
ippcp.h
Parameters
- pRandBN
- Pointer to the output pseudorandom Big Number.
- nBits
- Number of the generated pseudorandom bit.
- pCtx
- Pointer to theIppsPRNGStatecontext.
Description
The function generates pseudorandom positive 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.