Fill Method
Fill(RandomNumberGenerator, Span<byte>)
Fill a range with random bytes.
C#
public static void Fill(this RandomNumberGenerator rng, Span<byte> data)
Parameters
Type | Name | Description |
---|---|---|
RandomNumberGenerator | rng | The System.Security.Cryptography.RandomNumberGenerator instance being extended. |
Span<byte> | data | A System.Span<T> to fill with random bytes. |