From 202b867ca27146d61333ca4ac7efaf5bc7ae24fb Mon Sep 17 00:00:00 2001 From: Gogol Bhattacharya Date: Fri, 1 Sep 2017 00:41:15 -0700 Subject: [PATCH] Update PRNG.c --- includes/PRNG.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/PRNG.c b/includes/PRNG.c index 82cef68..e532520 100644 --- a/includes/PRNG.c +++ b/includes/PRNG.c @@ -21,6 +21,8 @@ void Initialize(uint8_t seed) // Algorithm adapted from: // http://www.arklyffe.com/main/2010/08/29/xorshift-pseudorandom-number-generator/ // https://en.wikipedia.org/wiki/Xorshift +// Do not call this function directly. +// Call getRandomNumber or getRandomLed uint8_t xorshift8(uint8_t state[static 1]) { uint8_t x = state[0];