This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Generating a random number?

The on page 52 of the "MSP MCU FRAM Utilities" user guide is a description about using [what I think is called] the RNG API for generating a random number. However, I find the explanation too vague to understand.

  • Does a file need to be #included?
  • How is the RNG_KEYLEN macro used?
  • How is the uint16_t rng_generateBytes (uint8_t dst, uint16_t length) function used?
  • Would somebody please be kind enough to provide me with a short example that generates a random 16-bit number?

Be aware that there is no document number for that user guide.

**Attention** This is a public forum