Create<TRng>(TRng) Method
Creates a new RandomNumberGenerator wrapper over rng.

Syntax

public static RandomNumberGeneratorShim<TRng> Create<TRng>(TRng rng) where TRng : ICryptoRng

Type Parameters

NameDescription
TRng

Parameters

NameTypeDescription
rngTRngA cryptographically secure RNG.

Return Value

TypeDescription
RandomNumberGeneratorShim<TRng>