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