PRNGen

Generates a pseudorandom unsigned Big Number of the specified bitlength.

Syntax

IppStatus ippsPRNGen(Ipp32u* pRandBNU, int nBits, void* pCtx);

Parameters

pRandBNU

Pointer to the output pseudorandom unsigned integer big number.

nBits

Number of the generated pseudorandom bit.

pCtx

Pointer to the IppsPRNGState context.

Description

This function is declared in the ippcp.h file. The function generates 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.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.