TRNG

TRNG API Reference

Functions

OSStatus BkRandomNumberRead(void *inBuffer, int inByteCount)

Fill in a memory buffer with random data.

Return

kNoErr : on success.

kGeneralErr : if an error occurred with any step

Parameters
  • inBuffer: : Point to a valid memory buffer, this function will fill in this memory with random numbers after executed

  • inByteCount: : Length of the memory buffer (bytes)

Macros

PlatformRandomBytes

For API compatible with older version