card_list is a LLL, and randomize is suppose to basically shuffle the contents.
I'm running into a segfault when I progress previous->next = current->next;
This function takes a number, (number is randomized and % by the size of the LLL so it always spits out a number equal or smaller to the list size) I progress to the number in the list with a previous pointer. Once at the location I copy the node, reinsert the copy into the front of the list and then delete the node. I have this exact function working in a different program, but for some reason it's segfaulting now.
Maybe previous->next = current->next is pointing to a NULL pointer, I'm not sure.