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:
commit
cf29ced346
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user