diff --git a/DESIGN b/DESIGN index 9cff98cf..60be813d 100644 --- a/DESIGN +++ b/DESIGN @@ -390,26 +390,6 @@ Track Tag: -Random: - The random number generator is used by the Queue to pick a song as - randomly as possible. I use two different RNG implementations, - depending on if Ocarina is compiled with CONFIG_TEST or not. - - When CONFIG_TEST is enabled, the RNG is a simple counter. Every time - _pick_random() is called, the counter is incremented and returned. - When compiled without CONFIG_TEST we will return values using the - rand() function from stdlib.h. - -- API: - void random_seed(unsigned int n); - Seed the random number generator based on n. - - void random(unsigned int min, unsigned int max); - Return a random number between min and max, inclusive. - If min >= max: return min. - - - Queue: Queues are lists of songs that the user has requested to play. They are the main interface for all music played by Ocarina.