SecureRandomInstance Property

Gets a SecureRandom instance that can be used from any threads concurrently.

Definition

Namespace: KGySoft.Security.Cryptography
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.0.0
C#
public static SecureRandom Instance { get; }

Property Value

SecureRandom

Remarks

  Caution

Starting with .NET 6.0 the base Random class has a Shared property, which is accessible also from the SecureRandom class, though it returns a Random instance, which is not cryptographically secure.

See Also