Secret.Random(Int32) Method

Definition

Returns a Secret made entirely of random bytes retrieved from a cryptographically secure RNG.

public:
 static Microsoft::AspNetCore::DataProtection::Secret ^ Random(int numBytes);
public static Microsoft.AspNetCore.DataProtection.Secret Random (int numBytes);
static member Random : int -> Microsoft.AspNetCore.DataProtection.Secret
Public Shared Function Random (numBytes As Integer) As Secret

Parameters

numBytes
Int32

Returns

Applies to