Generate random data into a buffer.
This is called by COS to generate a buffer of random data. The simplest approach is to use the default platform's standard srandom and calls to initialize and generate random data, respectively.
- Note
- If security is not disabled this must generate cryptographically secure random data.
This callback must not be NULL.
- Parameters
-
buf | The buffer into which the random data is placed. This must not be NULL. |
size | The number of bytes of random data to generate. |