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 |
---|---|---|
System.Security.Cryptography.RandomNumberGenerator | rng | The System.Security.Cryptography.RandomNumberGenerator instance being extended. |
System.Span<System.Byte> | data | A System.Span<> to fill with random bytes. |