KGy SOFT

ThreadSafeRandomInstance Property

KGy SOFT Core Libraries Help
Gets a ThreadSafeRandom instance that can be used from any threads concurrently.

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0
Syntax

public static ThreadSafeRandom Instance { get; }

Property Value

Type: ThreadSafeRandom
Remarks

Note Note
This property returns a ThreadSafeRandom instance, which generates pseudo random numbers using FastRandom internally. To produce cryptographically secure random numbers use the Create(FuncRandom) method instead, and initialize it by a delegate, which returns SecureRandom instances.
See Also

Reference