otPlatCryptoRandomGet() function
Fills a given buffer with cryptographically secure random bytes.
Arguments
aBuffer
A pointer to a buffer to fill with the random bytes.
aSize
Size of buffer (number of bytes to fill).
Return value
OT_ERROR_NONE Successfully filled buffer with random values. OT_ERROR_FAILED Operation failed.
otPlatCryptoRandomGet() is called by 1 function and calls 2 functions:
![]()
otPlatCryptoRandomGet()
otPlatCryptoRandomGet():
![]()
otPlatCryptoRandomGet()