RandomNumberGenerator.Fill(Span<Byte>) Method

Definition

Fills a span with cryptographically strong random bytes.

public:
 static void Fill(Span<System::Byte> data);
public static void Fill (Span<byte> data);
static member Fill : Span<byte> -> unit
Public Shared Sub Fill (data As Span(Of Byte))

Parameters

data
Span<Byte>

The span to fill with cryptographically strong random bytes.

Applies to