CryptoGenerateRandomNumber (FUN)
FUNCTION CryptoGenerateRandomNumber : RTS_IEC_RESULT
Generate a number of cryptographic strong bytes.
- InOut:
Scope
Name
Type
Comment
Return
CryptoGenerateRandomNumberRTS_IEC_RESULTFunction returns ERR_OK if the bytes could be generated
Input
ui32NumOfRandomBytesUDINTNumber of bytes needed.
pRandomPOINTER TO RtsByteString
Buffer to store the bytes.