PRNGGetSeed
PRNGGetSeed
Extracts the seed value of the pseudorandom number generator from the context structure.
Syntax
IppStatus ippsPRNGGetSeed(const IppsPRNGState* pCtx
, IppsBigNumState*
pSeed
);
Include Files
ippcp.h
Parameters
- pCtx
- Pointer to theIppsPRNGStatecontext.
- pSeed
- Pointer to the seed value.
Description
The function extracts the seed value of the pseudorandom number generator from the
IppsPRNGState
context structure into a big number.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*pSeedis not aIppsBigNumStatestructure or*pCtxis not aIppsPRNGStatestructure.
- ippOutOfRangeErr
- Indicates an error condition if the length of the actual seed exceeds*pSeed.