API

RandomNumberGenerator.GetBytes

Returns cryptographically secure random bytes.

Formal Syntax & Structure

csharp syntaxcsharp
RandomNumberGenerator.GetBytes(32)

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.RandomNumberGenerator.GetBytes(32)
C# & .NET Reference