From 83a69c0cb20d5481f3c78ee88d9f5d35bc4656b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= Date: Tue, 7 Mar 2017 12:15:11 +0100 Subject: [PATCH] random: doc: warn about global PRNG state --- sys/include/random.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/include/random.h b/sys/include/random.h index 954f394693..886244d018 100644 --- a/sys/include/random.h +++ b/sys/include/random.h @@ -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);