OpenDOF Project
void(* const DOSCallbacks::DOSApplicationCallbacks_t::GenerateRandom)(uint8 *buf, uint16 size)

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
bufThe buffer into which the random data is placed. This must not be NULL.
sizeThe number of bytes of random data to generate.
core-c-cos Version 7.0.1 Build 0
2018-02-08