Secret.Random(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回從密碼編譯安全 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