SecureRandomGetInstance(String, Boolean) Method

Create an instance based on the given algorithm, with optional auto-seeding

Definition

Namespace: Org.BouncyCastle.Security
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public static SecureRandom GetInstance(
	string algorithm,
	bool autoSeed
)

Parameters

algorithm  String
e.g. "SHA256PRNG"
autoSeed  Boolean
If true, the instance will be auto-seeded.

Return Value

SecureRandom

See Also