Share via


GenerateRandom Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Namespace:  Microsoft.SPOT.Cryptoki
Assembly:  Microsoft.SPOT.Security.PKCS11 (in Microsoft.SPOT.Security.PKCS11.dll)

Syntax

'Declaration
Public Sub GenerateRandom ( _
    data As Byte(), _
    index As Integer, _
    length As Integer, _
    onlyNonZero As Boolean _
)
public void GenerateRandom(
    byte[] data,
    int index,
    int length,
    bool onlyNonZero
)
public:
void GenerateRandom(
    array<unsigned char>^ data, 
    int index, 
    int length, 
    bool onlyNonZero
)
member GenerateRandom : 
        data:byte[] * 
        index:int * 
        length:int * 
        onlyNonZero:bool -> unit 
public function GenerateRandom(
    data : byte[], 
    index : int, 
    length : int, 
    onlyNonZero : boolean
)

Parameters

.NET Framework Security

See Also

Reference

CryptokiRNG Class

Microsoft.SPOT.Cryptoki Namespace