|
myMPD
Internal API documentation
|
Linked list implementation. More...
#include "src/lib/list/shuffle.h"#include "src/lib/list/list.h"#include "src/lib/mem.h"#include "src/lib/random.h"
Functions | |
| bool | list_shuffle (struct t_list *l) |
Linked list implementation.
| bool list_shuffle | ( | struct t_list * | l | ) |
Shuffles the list using Fisher-Yates algorithm. Optimized for doubly-linked list: reconstructs both next and prev pointers
| l | list |