RandomNumberGenerator.Fill(Span<Byte>) Method

Definition

Fills a span with cryptographically strong random bytes.

C#
public static void Fill(Span<byte> data);

Parameters

data
Span<Byte>

The span to fill with cryptographically strong random bytes.

Applies to

Produkt Verzie
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1