![]() |
Contiki-NG
|
Files | |
| file | random.c |
| Implementation of Pseudo Random Number Generator for CC13xx/CC26xx. | |
Functions | |
| unsigned short | random_rand (void) |
| Generates a new random number using the PRNG. | |
| void | random_init (unsigned short seed) |
| Initialize the PRNG. | |
Implementation based on Bob Jenkins' small noncryptographic PRNG.
This file overrides os/lib/random.c. Note that the file name must match the original file for the override to work.
| void random_init | ( | unsigned short | seed | ) |
Initialize the PRNG.
Seed the cc2538 random number generator.
| seed | Seed for the PRNG. |
Definition at line 87 of file random.c.
References random_rand().