The pop-up api description for the trng_api_t::read function is a little confusing. The prototype implies that read populates the p_rngbuf buffer with 32-bit words of data and that the number of 32-bit words is specified by nwords parameter. The description below makes reference to nbytes and random number bytes. Just wanted to confirm that api for trng read truly operates on 32-bit words rather than 8-bit bytes? Name: (* trng_api_t::read) Prototype: uint32_t (* trng_api_t::read) (trng_ctrl_t *const p_ctrl, uint32_t *const p_rngbuf, uint32_t nwords) Description: Generate nbytes of random number bytes and store them in p_rngbuf buffer p_ctrl pointer to trng control structure p_rngbuf generated random numbers will be stored to the buffer p_rngbuf nbytes number of random bytes to generate
↧