#include <twl/aes.h>
AESResult AES_Rand( void* p, u32 size );
| p | Pointer to the buffer to which to write a random number. |
|---|---|
| size | Size of the buffer to which to write the random number. |
Returns AES_RESULT_SUCCESS if the random number was generated successfully. Any other return values indicate an error.
Generates a pseudo-random number using the AES algorithm.
For the following reasons, this function is not well-suited for generating standard random numbers. It should only be used for special purposes.
AES_Rand() are running.
Use the MATH Random Number Generator in order to generate standard random numbers.
2007/12/25 Initial version.
CONFIDENTIAL