Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

RandomNumberGenerator.Fill(Span<Byte>) Method

Definition

Namespace:
System.Security.Cryptography
Assemblies:
netstandard.dll, System.Security.Cryptography.dll
Assemblies:
netstandard.dll, System.Security.Cryptography.Algorithms.dll
Assembly:
System.Security.Cryptography.Algorithms.dll
Assembly:
netstandard.dll
Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?