CryptokiRNG.GenerateRandom Method
Generates a set of random bytes.
Namespace: Microsoft.SPOT.Cryptoki
Assembly: Microsoft.SPOT.Security.PKCS11 (in microsoft.spot.security.pkcs11.dll)
Syntax
[MethodImplAttribute(InternalCall)]
public void GenerateRandom (
byte[] data,
int index,
int length,
bool onlyNonZero
)
Parameters
- data
The output array for storing the random values. - index
The index where the random values will be placed. - length
The length, in bytes, of the generated random data. - onlyNonZero
true to only generate non-zero bytes; otherwise, false.
Version Information
Available in the .NET Micro Framework version 4.2.
See Also
Reference
CryptokiRNG Class
CryptokiRNG Members
Microsoft.SPOT.Cryptoki Namespace