Skip to content

Commit

Permalink
Update PRNG.c
Browse files Browse the repository at this point in the history
  • Loading branch information
gogolB authored Sep 1, 2017
1 parent 8e24184 commit 202b867
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/PRNG.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 202b867

Please sign in to comment.