1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #6710 from cgundogan/pr/random_warning

random: doc: warn about global PRNG state
This commit is contained in:
Martine Lenders 2017-03-07 14:57:54 +01:00 committed by GitHub
commit cf29ced346

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);