[中文]

TRNG

TRNG API reference

Functions

OSStatus BkRandomNumberRead(void *inBuffer, int inByteCount)

Fill in a memory buffer with random data.

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)

Returns

  • kNoErr : on success.

  • kGeneralErr : if an error occurred with any step

Macros

PlatformRandomBytes

For API compatible with older version