共用方式為


Secret.Random(Int32) 方法

定義

傳回從密碼編譯安全 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

參數

numBytes
Int32

傳回

適用於