SECRandom::AddWeight

BOOLSECRandom::AddWeight(unsigned intnPosition, unsigned intnWeight)

Add an individual weight to an existing weight array.

Defined in: SECRAND.CPP

Return Value

Nonzero if weight was successfully added.

Parameters

nPosition

The position in the weight array being assigned.

nWeight

The actual weight assigned to the position.

Comments

InitWeights() must be called before any new weight can be manually added.

See Also

SECRandomAddWeights  InitWeights