CryptoSys API Library Manual
Rng.KeyBytes Method (Int32, String)
Generates a random key
Syntax
[C#]
public static byte[] KeyBytes(
int numBytes,
string seedStr
)
[VB.NET]
Public Shared Function KeyBytes ( _
numBytes As Integer, _
seedStr As String _
) As Byte()
Parameters
- numBytes
- Required number of random bytes
- seedStr
- User-supplied entropy in string format. Set as an empty string "" to ignore.
Return Value
Array of random bytes
See Also
VB6/C equivalent: RNG_KeyBytes
[Contents] [Index]