1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

random: doc: warn about global PRNG state

This commit is contained in:
Cenk Gündoğan 2017-03-07 12:15:11 +01:00
parent 302d5d35e9
commit 83a69c0cb2

View File

@ -39,6 +39,10 @@ extern "C" {
/**
* @brief initializes PRNG with a seed
*
* @warning Currently, the random module uses a global state
* => multiple calls to @ref random_init will reset the existing
* state of the PRNG.
*
* @param s seed for the PRNG
*/
void random_init(uint32_t s);