SecureRandom(IRandomGenerator) Constructor

Use the specified instance of IRandomGenerator as random source.

Definition

Namespace: Org.BouncyCastle.Security
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public SecureRandom(
	IRandomGenerator generator
)

Parameters

generator  IRandomGenerator
The source to generate all random bytes from.

Remarks

This constructor performs no seeding of either the IRandomGenerator or the constructed SecureRandom. It is the responsibility of the client to provide proper seed material as necessary/appropriate for the given IRandomGenerator implementation.

See Also